removed channeltype, never used
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
package rtc_test
|
||||
|
||||
import (
|
||||
"github.com/livekit/livekit-server/pkg/rtc/rtcfakes"
|
||||
"github.com/livekit/livekit-server/pkg/utils"
|
||||
"github.com/livekit/livekit-server/proto/livekit"
|
||||
)
|
||||
|
||||
func newMockParticipant(name string) *rtcfakes.FakeParticipant {
|
||||
p := &rtcfakes.FakeParticipant{}
|
||||
p.IDReturns(utils.NewGuid(utils.ParticipantPrefix))
|
||||
p.NameReturns(name)
|
||||
p.StateReturns(livekit.ParticipantInfo_JOINED)
|
||||
|
||||
return p
|
||||
}
|
||||
|
||||
func newMockTrack(kind livekit.TrackInfo_Type, name string) *rtcfakes.FakePublishedTrack {
|
||||
t := &rtcfakes.FakePublishedTrack{}
|
||||
t.IDReturns(utils.NewGuid(utils.TrackPrefix))
|
||||
t.KindReturns(kind)
|
||||
t.StreamIDReturns(name)
|
||||
return t
|
||||
}
|
||||
Reference in New Issue
Block a user