Revert "Make MockPeerConnectionInterface not inherit from RefCountedObject"

This reverts commit d67903d284.

Reason for revert: A downstream issue needs to be fixed.

Original change's description:
> 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}

Bug: webrtc:12701
Change-Id: I25e2d6004d257dd0b1d17fb1f7726d04d29e6eed
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/256109
Bot-Commit: rubber-stamper@appspot.gserviceaccount.com <rubber-stamper@appspot.gserviceaccount.com>
Reviewed-by: Tomas Gunnarsson <tommi@webrtc.org>
Commit-Queue: Tomas Gunnarsson <tommi@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#36271}
This commit is contained in:
Tomas Gunnarsson 2022-03-20 18:38:25 +00:00 committed by WebRTC LUCI CQ
parent 0a5e12b07d
commit 82c94af48f

View file

@ -25,7 +25,8 @@
namespace webrtc {
class MockPeerConnectionInterface : public PeerConnectionInterface {
class MockPeerConnectionInterface
: public rtc::RefCountedObject<webrtc::PeerConnectionInterface> {
public:
static rtc::scoped_refptr<MockPeerConnectionInterface> Create() {
return rtc::make_ref_counted<MockPeerConnectionInterface>();
@ -198,9 +199,7 @@ class MockPeerConnectionInterface : public PeerConnectionInterface {
MOCK_METHOD(void, Close, (), (override));
};
static_assert(!std::is_abstract<
rtc::RefCountedObject<MockPeerConnectionInterface>>::value,
"");
static_assert(!std::is_abstract<MockPeerConnectionInterface>::value, "");
} // namespace webrtc