| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_RENDERER_MEDIA_MOCK_PEER_CONNECTION_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_MOCK_PEER_CONNECTION_IMPL_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_MOCK_PEER_CONNECTION_IMPL_H_ | 6 #define CONTENT_RENDERER_MEDIA_MOCK_PEER_CONNECTION_IMPL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 } | 55 } |
| 56 IceConnectionState ice_connection_state() override { | 56 IceConnectionState ice_connection_state() override { |
| 57 NOTIMPLEMENTED(); | 57 NOTIMPLEMENTED(); |
| 58 return PeerConnectionInterface::kIceConnectionNew; | 58 return PeerConnectionInterface::kIceConnectionNew; |
| 59 } | 59 } |
| 60 IceGatheringState ice_gathering_state() override { | 60 IceGatheringState ice_gathering_state() override { |
| 61 NOTIMPLEMENTED(); | 61 NOTIMPLEMENTED(); |
| 62 return PeerConnectionInterface::kIceGatheringNew; | 62 return PeerConnectionInterface::kIceGatheringNew; |
| 63 } | 63 } |
| 64 | 64 |
| 65 bool StartRtcEventLog(rtc::PlatformFile file, |
| 66 int64_t max_size_bytes) override { |
| 67 NOTIMPLEMENTED(); |
| 68 return false; |
| 69 } |
| 70 void StopRtcEventLog() override { NOTIMPLEMENTED(); } |
| 71 |
| 65 MOCK_METHOD0(Close, void()); | 72 MOCK_METHOD0(Close, void()); |
| 66 | 73 |
| 67 const webrtc::SessionDescriptionInterface* local_description() const override; | 74 const webrtc::SessionDescriptionInterface* local_description() const override; |
| 68 const webrtc::SessionDescriptionInterface* remote_description() | 75 const webrtc::SessionDescriptionInterface* remote_description() |
| 69 const override; | 76 const override; |
| 70 | 77 |
| 71 // JSEP01 APIs | 78 // JSEP01 APIs |
| 72 void CreateOffer(webrtc::CreateSessionDescriptionObserver* observer, | 79 void CreateOffer(webrtc::CreateSessionDescriptionObserver* observer, |
| 73 const RTCOfferAnswerOptions& options) override; | 80 const RTCOfferAnswerOptions& options) override; |
| 74 void CreateAnswer(webrtc::CreateSessionDescriptionObserver* observer, | 81 void CreateAnswer(webrtc::CreateSessionDescriptionObserver* observer, |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 int sdp_mline_index_; | 136 int sdp_mline_index_; |
| 130 std::string ice_sdp_; | 137 std::string ice_sdp_; |
| 131 webrtc::PeerConnectionObserver* observer_; | 138 webrtc::PeerConnectionObserver* observer_; |
| 132 | 139 |
| 133 DISALLOW_COPY_AND_ASSIGN(MockPeerConnectionImpl); | 140 DISALLOW_COPY_AND_ASSIGN(MockPeerConnectionImpl); |
| 134 }; | 141 }; |
| 135 | 142 |
| 136 } // namespace content | 143 } // namespace content |
| 137 | 144 |
| 138 #endif // CONTENT_RENDERER_MEDIA_MOCK_PEER_CONNECTION_IMPL_H_ | 145 #endif // CONTENT_RENDERER_MEDIA_MOCK_PEER_CONNECTION_IMPL_H_ |
| OLD | NEW |