switch participant to interface

This commit is contained in:
David Zhao
2020-12-21 23:00:48 -08:00
parent c4cb29a3bb
commit 2a79bdb678
12 changed files with 681 additions and 138 deletions
+15
View File
@@ -0,0 +1,15 @@
package rtc
import (
"github.com/golang/mock/gomock"
)
func newMockPeerConnection(mockCtrl *gomock.Controller) *MockPeerConnection {
pc := NewMockPeerConnection(mockCtrl)
pc.EXPECT().OnDataChannel(gomock.Any()).AnyTimes()
pc.EXPECT().OnICECandidate(gomock.Any()).AnyTimes()
pc.EXPECT().OnICEConnectionStateChange(gomock.Any()).AnyTimes()
pc.EXPECT().OnNegotiationNeeded(gomock.Any()).AnyTimes()
pc.EXPECT().OnTrack(gomock.Any()).AnyTimes()
return pc
}