mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-13 13:50:40 +01:00
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:
parent
0a5e12b07d
commit
82c94af48f
1 changed files with 3 additions and 4 deletions
|
@ -25,7 +25,8 @@
|
||||||
|
|
||||||
namespace webrtc {
|
namespace webrtc {
|
||||||
|
|
||||||
class MockPeerConnectionInterface : public PeerConnectionInterface {
|
class MockPeerConnectionInterface
|
||||||
|
: 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>();
|
||||||
|
@ -198,9 +199,7 @@ class MockPeerConnectionInterface : public PeerConnectionInterface {
|
||||||
MOCK_METHOD(void, Close, (), (override));
|
MOCK_METHOD(void, Close, (), (override));
|
||||||
};
|
};
|
||||||
|
|
||||||
static_assert(!std::is_abstract<
|
static_assert(!std::is_abstract<MockPeerConnectionInterface>::value, "");
|
||||||
rtc::RefCountedObject<MockPeerConnectionInterface>>::value,
|
|
||||||
"");
|
|
||||||
|
|
||||||
} // namespace webrtc
|
} // namespace webrtc
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue