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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 const blink::WebRTCAnswerOptions& options) override; | 44 const blink::WebRTCAnswerOptions& options) override; |
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, |
| 55 blink::WebRTCError& error) override; |
55 bool addICECandidate(const blink::WebRTCICECandidate& ice_candidate) override; | 56 bool addICECandidate(const blink::WebRTCICECandidate& ice_candidate) override; |
56 bool addICECandidate(const blink::WebRTCVoidRequest& request, | 57 bool addICECandidate(const blink::WebRTCVoidRequest& request, |
57 const blink::WebRTCICECandidate& ice_candidate) override; | 58 const blink::WebRTCICECandidate& ice_candidate) override; |
58 bool addStream(const blink::WebMediaStream& stream, | 59 bool addStream(const blink::WebMediaStream& stream, |
59 const blink::WebMediaConstraints& constraints) override; | 60 const blink::WebMediaConstraints& constraints) override; |
60 void removeStream(const blink::WebMediaStream& stream) override; | 61 void removeStream(const blink::WebMediaStream& stream) override; |
61 void getStats(const blink::WebRTCStatsRequest& request) override; | 62 void getStats(const blink::WebRTCStatsRequest& request) override; |
62 void getStats(std::unique_ptr<blink::WebRTCStatsReportCallback>) override; | 63 void getStats(std::unique_ptr<blink::WebRTCStatsReportCallback>) override; |
63 blink::WebRTCDataChannelHandler* createDataChannel( | 64 blink::WebRTCDataChannelHandler* createDataChannel( |
64 const blink::WebString& label, | 65 const blink::WebString& label, |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 StreamMap remote_streams_; | 99 StreamMap remote_streams_; |
99 | 100 |
100 base::WeakPtrFactory<MockWebRTCPeerConnectionHandler> weak_factory_; | 101 base::WeakPtrFactory<MockWebRTCPeerConnectionHandler> weak_factory_; |
101 | 102 |
102 DISALLOW_COPY_AND_ASSIGN(MockWebRTCPeerConnectionHandler); | 103 DISALLOW_COPY_AND_ASSIGN(MockWebRTCPeerConnectionHandler); |
103 }; | 104 }; |
104 | 105 |
105 } // namespace test_runner | 106 } // namespace test_runner |
106 | 107 |
107 #endif // COMPONENTS_TEST_RUNNER_MOCK_WEBRTC_PEER_CONNECTION_HANDLER_H_ | 108 #endif // COMPONENTS_TEST_RUNNER_MOCK_WEBRTC_PEER_CONNECTION_HANDLER_H_ |
OLD | NEW |