Make MockPeerConnectionInterface not inherit from RefCountedObject
Bug: webrtc:12701 Change-Id: I51fb7caf12b97d70f35af12703104112f9fdfaff Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/256107 Auto-Submit: Tomas Gunnarsson <tommi@webrtc.org> Reviewed-by: Harald Alvestrand <hta@webrtc.org> Commit-Queue: Harald Alvestrand <hta@webrtc.org> Cr-Commit-Position: refs/heads/main@{#36267}
This commit is contained in:
parent
346abbc68a
commit
d67903d284
@ -25,8 +25,7 @@
|
|||||||
|
|
||||||
namespace webrtc {
|
namespace webrtc {
|
||||||
|
|
||||||
class MockPeerConnectionInterface
|
class MockPeerConnectionInterface : public PeerConnectionInterface {
|
||||||
: public rtc::RefCountedObject<webrtc::PeerConnectionInterface> {
|
|
||||||
public:
|
public:
|
||||||
static rtc::scoped_refptr<MockPeerConnectionInterface> Create() {
|
static rtc::scoped_refptr<MockPeerConnectionInterface> Create() {
|
||||||
return rtc::make_ref_counted<MockPeerConnectionInterface>();
|
return rtc::make_ref_counted<MockPeerConnectionInterface>();
|
||||||
@ -199,7 +198,9 @@ class MockPeerConnectionInterface
|
|||||||
MOCK_METHOD(void, Close, (), (override));
|
MOCK_METHOD(void, Close, (), (override));
|
||||||
};
|
};
|
||||||
|
|
||||||
static_assert(!std::is_abstract<MockPeerConnectionInterface>::value, "");
|
static_assert(!std::is_abstract<
|
||||||
|
rtc::RefCountedObject<MockPeerConnectionInterface>>::value,
|
||||||
|
"");
|
||||||
|
|
||||||
} // namespace webrtc
|
} // namespace webrtc
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user