From d67903d284353dffcf28dfb92819e3d7c4b69bfd Mon Sep 17 00:00:00 2001 From: Tomas Gunnarsson Date: Sat, 19 Mar 2022 16:27:57 +0100 Subject: [PATCH] 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 Reviewed-by: Harald Alvestrand Commit-Queue: Harald Alvestrand Cr-Commit-Position: refs/heads/main@{#36267} --- api/test/mock_peerconnectioninterface.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/api/test/mock_peerconnectioninterface.h b/api/test/mock_peerconnectioninterface.h index effd24e294..adc09f9585 100644 --- a/api/test/mock_peerconnectioninterface.h +++ b/api/test/mock_peerconnectioninterface.h @@ -25,8 +25,7 @@ namespace webrtc { -class MockPeerConnectionInterface - : public rtc::RefCountedObject { +class MockPeerConnectionInterface : public PeerConnectionInterface { public: static rtc::scoped_refptr Create() { return rtc::make_ref_counted(); @@ -199,7 +198,9 @@ class MockPeerConnectionInterface MOCK_METHOD(void, Close, (), (override)); }; -static_assert(!std::is_abstract::value, ""); +static_assert(!std::is_abstract< + rtc::RefCountedObject>::value, + ""); } // namespace webrtc