api/test: Add Create() method to MockPeerConnectionInterface
Bug: webrtc:9620 Change-Id: Id389e433cceed6435f6d07c1eae70c2d582c617f Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/226323 Commit-Queue: Florent Castelli <orphis@webrtc.org> Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Cr-Commit-Position: refs/heads/master@{#34491}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
29ae340770
commit
0fc787ba93
@ -18,7 +18,9 @@
|
||||
#include <vector>
|
||||
|
||||
#include "api/peer_connection_interface.h"
|
||||
#include "api/scoped_refptr.h"
|
||||
#include "api/sctp_transport_interface.h"
|
||||
#include "rtc_base/ref_counted_object.h"
|
||||
#include "test/gmock.h"
|
||||
|
||||
namespace webrtc {
|
||||
@ -26,6 +28,10 @@ namespace webrtc {
|
||||
class MockPeerConnectionInterface
|
||||
: public rtc::RefCountedObject<webrtc::PeerConnectionInterface> {
|
||||
public:
|
||||
static rtc::scoped_refptr<MockPeerConnectionInterface> Create() {
|
||||
return new MockPeerConnectionInterface();
|
||||
}
|
||||
|
||||
// PeerConnectionInterface
|
||||
MOCK_METHOD(rtc::scoped_refptr<StreamCollectionInterface>,
|
||||
local_streams,
|
||||
|
||||
Reference in New Issue
Block a user