OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_RENDERER_MEDIA_MOCK_WEB_RTC_PEER_CONNECTION_HANDLER_CLIENT_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_MOCK_WEB_RTC_PEER_CONNECTION_HANDLER_CLIENT_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "base/basictypes.h" |
| 11 #include "base/compiler_specific.h" |
| 12 #include "third_party/WebKit/Source/Platform/chromium/public/WebRTCICECandidate.
h" |
| 13 #include "third_party/WebKit/Source/Platform/chromium/public/WebRTCPeerConnectio
nHandlerClient.h" |
| 14 |
| 15 namespace WebKit { |
| 16 |
| 17 class MockWebRTCPeerConnectionHandlerClient |
| 18 : public WebRTCPeerConnectionHandlerClient { |
| 19 public: |
| 20 MockWebRTCPeerConnectionHandlerClient(); |
| 21 virtual ~MockWebRTCPeerConnectionHandlerClient(); |
| 22 |
| 23 // WebRTCPeerConnectionHandlerClient implementation. |
| 24 virtual void negotiationNeeded() OVERRIDE; |
| 25 virtual void didGenerateICECandidate( |
| 26 const WebRTCICECandidate& candidate) OVERRIDE; |
| 27 virtual void didChangeReadyState(ReadyState) OVERRIDE; |
| 28 virtual void didChangeICEState(ICEState) OVERRIDE; |
| 29 virtual void didAddRemoteStream( |
| 30 const WebMediaStreamDescriptor& stream_descriptor) OVERRIDE; |
| 31 virtual void didRemoveRemoteStream( |
| 32 const WebMediaStreamDescriptor& stream_descriptor) OVERRIDE; |
| 33 |
| 34 bool renegotiate() const { return renegotiate_; } |
| 35 |
| 36 const std::string& candidate_sdp() const { return candidate_sdp_; } |
| 37 int candidate_mlineindex() const { |
| 38 return candidate_mline_index_; |
| 39 } |
| 40 const std::string& candidate_mid() const { return candidate_mid_ ; } |
| 41 ReadyState ready_state() const { return ready_state_; } |
| 42 ICEState ice_state() const { return ice_state_; } |
| 43 const std::string& stream_label() const { return stream_label_; } |
| 44 |
| 45 private: |
| 46 bool renegotiate_; |
| 47 std::string stream_label_; |
| 48 ReadyState ready_state_; |
| 49 ICEState ice_state_; |
| 50 std::string candidate_sdp_; |
| 51 int candidate_mline_index_; |
| 52 std::string candidate_mid_; |
| 53 |
| 54 DISALLOW_COPY_AND_ASSIGN(MockWebRTCPeerConnectionHandlerClient); |
| 55 }; |
| 56 |
| 57 } // namespace WebKit |
| 58 |
| 59 #endif // CONTENT_RENDERER_MEDIA_MOCK_WEB_RTC_PEER_CONNECTION_HANDLER_CLIENT_H_ |
OLD | NEW |