diff --git a/api/test/mock_peerconnectioninterface.h b/api/test/mock_peerconnectioninterface.h index adc09f9585..effd24e294 100644 --- a/api/test/mock_peerconnectioninterface.h +++ b/api/test/mock_peerconnectioninterface.h @@ -25,7 +25,8 @@ namespace webrtc { -class MockPeerConnectionInterface : public PeerConnectionInterface { +class MockPeerConnectionInterface + : public rtc::RefCountedObject { public: static rtc::scoped_refptr Create() { return rtc::make_ref_counted(); @@ -198,9 +199,7 @@ class MockPeerConnectionInterface : public PeerConnectionInterface { MOCK_METHOD(void, Close, (), (override)); }; -static_assert(!std::is_abstract< - rtc::RefCountedObject>::value, - ""); +static_assert(!std::is_abstract::value, ""); } // namespace webrtc