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_JSEP_PEER_CONNECTION_HANDLER_CLIENT_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_MOCK_WEB_JSEP_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/WebKit/chromium/public/platform/WebPeerConne
ction00HandlerClient.h" |
| 13 |
| 14 namespace WebKit { |
| 15 |
| 16 class MockWebPeerConnection00HandlerClient |
| 17 : public WebPeerConnection00HandlerClient { |
| 18 public: |
| 19 MockWebPeerConnection00HandlerClient(); |
| 20 virtual ~MockWebPeerConnection00HandlerClient(); |
| 21 |
| 22 // WebPeerConnection00HandlerClient implementation. |
| 23 virtual void didGenerateICECandidate( |
| 24 const WebICECandidateDescriptor& candidate, |
| 25 bool more_to_follow) OVERRIDE; |
| 26 virtual void didChangeReadyState(ReadyState state) OVERRIDE; |
| 27 virtual void didChangeICEState(ICEState state) OVERRIDE; |
| 28 virtual void didAddRemoteStream( |
| 29 const WebMediaStreamDescriptor& stream_descriptor) OVERRIDE; |
| 30 virtual void didRemoveRemoteStream( |
| 31 const WebMediaStreamDescriptor& stream_descriptor) OVERRIDE; |
| 32 |
| 33 const std::string& stream_label() const { return stream_label_; } |
| 34 ReadyState ready_state() const { return ready_state_; } |
| 35 const std::string& candidate_label() const { return candidate_label_; } |
| 36 const std::string& candidate_sdp() const { return candidate_sdp_; } |
| 37 bool more_to_follow() const { return more_to_follow_; } |
| 38 |
| 39 private: |
| 40 std::string stream_label_; |
| 41 ReadyState ready_state_; |
| 42 std::string candidate_label_; |
| 43 std::string candidate_sdp_; |
| 44 bool more_to_follow_; |
| 45 |
| 46 DISALLOW_COPY_AND_ASSIGN(MockWebPeerConnection00HandlerClient); |
| 47 }; |
| 48 |
| 49 } // namespace WebKit |
| 50 |
| 51 #endif // CONTENT_RENDERER_MEDIA_MOCK_WEB_JSEP_PEER_CONNECTION_HANDLER_CLIENT_H
_ |
OLD | NEW |