mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-20 09:07:52 +01:00
Another mock for GetSctpTransport
Bug: chromium:818643 Change-Id: I4ae7826efa7afa8e7b2ecd8a5928071a1b913ded Reviewed-on: https://webrtc-review.googlesource.com/c/125340 Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Commit-Queue: Harald Alvestrand <hta@webrtc.org> Cr-Commit-Position: refs/heads/master@{#26941}
This commit is contained in:
parent
87e05b5df5
commit
b2c4700d39
2 changed files with 7 additions and 0 deletions
|
@ -74,6 +74,8 @@ class MockPeerConnectionInterface
|
|||
void(rtc::scoped_refptr<RtpReceiverInterface>,
|
||||
rtc::scoped_refptr<RTCStatsCollectorCallback>));
|
||||
MOCK_METHOD0(ClearStatsCache, void());
|
||||
MOCK_CONST_METHOD0(GetSctpTransport,
|
||||
rtc::scoped_refptr<SctpTransportInterface>());
|
||||
MOCK_METHOD2(
|
||||
CreateDataChannel,
|
||||
rtc::scoped_refptr<DataChannelInterface>(const std::string&,
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "api/sctp_transport_interface.h"
|
||||
#include "pc/peer_connection_internal.h"
|
||||
|
||||
namespace webrtc {
|
||||
|
@ -108,6 +109,10 @@ class FakePeerConnectionBase : public PeerConnectionInternal {
|
|||
|
||||
void ClearStatsCache() override {}
|
||||
|
||||
rtc::scoped_refptr<SctpTransportInterface> GetSctpTransport() const {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
rtc::scoped_refptr<DataChannelInterface> CreateDataChannel(
|
||||
const std::string& label,
|
||||
const DataChannelInit* config) override {
|
||||
|
|
Loading…
Reference in a new issue