removed channeltype, never used

This commit is contained in:
David Zhao
2020-12-25 22:59:00 -08:00
parent 9897412473
commit ba8545954e
2 changed files with 0 additions and 21 deletions
+24
View File
@@ -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
}