OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef COMPONENTS_TEST_RUNNER_MOCK_WEBRTC_PEER_CONNECTION_HANDLER_H_ | 5 #ifndef COMPONENTS_TEST_RUNNER_MOCK_WEBRTC_PEER_CONNECTION_HANDLER_H_ |
6 #define COMPONENTS_TEST_RUNNER_MOCK_WEBRTC_PEER_CONNECTION_HANDLER_H_ | 6 #define COMPONENTS_TEST_RUNNER_MOCK_WEBRTC_PEER_CONNECTION_HANDLER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 void setLocalDescription( | 45 void setLocalDescription( |
46 const blink::WebRTCVoidRequest& request, | 46 const blink::WebRTCVoidRequest& request, |
47 const blink::WebRTCSessionDescription& local_description) override; | 47 const blink::WebRTCSessionDescription& local_description) override; |
48 void setRemoteDescription( | 48 void setRemoteDescription( |
49 const blink::WebRTCVoidRequest& request, | 49 const blink::WebRTCVoidRequest& request, |
50 const blink::WebRTCSessionDescription& remote_description) override; | 50 const blink::WebRTCSessionDescription& remote_description) override; |
51 blink::WebRTCSessionDescription localDescription() override; | 51 blink::WebRTCSessionDescription localDescription() override; |
52 blink::WebRTCSessionDescription remoteDescription() override; | 52 blink::WebRTCSessionDescription remoteDescription() override; |
53 bool setConfiguration( | 53 bool setConfiguration( |
54 const blink::WebRTCConfiguration& configuration) override; | 54 const blink::WebRTCConfiguration& configuration) override; |
55 void logSelectedRtcpMuxPolicy(blink::RtcpMuxPolicy) override; | |
56 bool addICECandidate(const blink::WebRTCICECandidate& ice_candidate) override; | 55 bool addICECandidate(const blink::WebRTCICECandidate& ice_candidate) override; |
57 bool addICECandidate(const blink::WebRTCVoidRequest& request, | 56 bool addICECandidate(const blink::WebRTCVoidRequest& request, |
58 const blink::WebRTCICECandidate& ice_candidate) override; | 57 const blink::WebRTCICECandidate& ice_candidate) override; |
59 bool addStream(const blink::WebMediaStream& stream, | 58 bool addStream(const blink::WebMediaStream& stream, |
60 const blink::WebMediaConstraints& constraints) override; | 59 const blink::WebMediaConstraints& constraints) override; |
61 void removeStream(const blink::WebMediaStream& stream) override; | 60 void removeStream(const blink::WebMediaStream& stream) override; |
62 void getStats(const blink::WebRTCStatsRequest& request) override; | 61 void getStats(const blink::WebRTCStatsRequest& request) override; |
63 void getStats(std::unique_ptr<blink::WebRTCStatsReportCallback>) override; | 62 void getStats(std::unique_ptr<blink::WebRTCStatsReportCallback>) override; |
64 blink::WebRTCDataChannelHandler* createDataChannel( | 63 blink::WebRTCDataChannelHandler* createDataChannel( |
65 const blink::WebString& label, | 64 const blink::WebString& label, |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 StreamMap remote_streams_; | 98 StreamMap remote_streams_; |
100 | 99 |
101 base::WeakPtrFactory<MockWebRTCPeerConnectionHandler> weak_factory_; | 100 base::WeakPtrFactory<MockWebRTCPeerConnectionHandler> weak_factory_; |
102 | 101 |
103 DISALLOW_COPY_AND_ASSIGN(MockWebRTCPeerConnectionHandler); | 102 DISALLOW_COPY_AND_ASSIGN(MockWebRTCPeerConnectionHandler); |
104 }; | 103 }; |
105 | 104 |
106 } // namespace test_runner | 105 } // namespace test_runner |
107 | 106 |
108 #endif // COMPONENTS_TEST_RUNNER_MOCK_WEBRTC_PEER_CONNECTION_HANDLER_H_ | 107 #endif // COMPONENTS_TEST_RUNNER_MOCK_WEBRTC_PEER_CONNECTION_HANDLER_H_ |
OLD | NEW |