aboutsummaryrefslogtreecommitdiff
path: root/pc/test/fake_peer_connection_base.h
diff options
context:
space:
mode:
Diffstat (limited to 'pc/test/fake_peer_connection_base.h')
-rw-r--r--pc/test/fake_peer_connection_base.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/pc/test/fake_peer_connection_base.h b/pc/test/fake_peer_connection_base.h
index 1acf86fdac..7970dd0f0f 100644
--- a/pc/test/fake_peer_connection_base.h
+++ b/pc/test/fake_peer_connection_base.h
@@ -120,10 +120,11 @@ class FakePeerConnectionBase : public PeerConnectionInternal {
return nullptr;
}
- rtc::scoped_refptr<DataChannelInterface> CreateDataChannel(
+ RTCErrorOr<rtc::scoped_refptr<DataChannelInterface>> CreateDataChannelOrError(
const std::string& label,
const DataChannelInit* config) override {
- return nullptr;
+ return RTCError(RTCErrorType::UNSUPPORTED_OPERATION,
+ "Fake function called");
}
const SessionDescriptionInterface* local_description() const override {