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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/memory/scoped_ptr.h" |
12 #include "third_party/libjingle/source/talk/app/webrtc/peerconnection.h" | 13 #include "third_party/libjingle/source/talk/app/webrtc/peerconnection.h" |
13 | 14 |
14 class MockMediaStreamDependencyFactory; | 15 class MockMediaStreamDependencyFactory; |
15 | 16 |
16 namespace webrtc { | 17 namespace webrtc { |
17 | 18 |
18 class MockStreamCollection; | 19 class MockStreamCollection; |
19 | 20 |
20 class MockPeerConnectionImpl : public PeerConnectionInterface { | 21 class MockPeerConnectionImpl : public PeerConnectionInterface { |
21 public: | 22 public: |
22 MockPeerConnectionImpl(MockMediaStreamDependencyFactory* factory); | 23 explicit MockPeerConnectionImpl(MockMediaStreamDependencyFactory* factory); |
23 | 24 |
24 // PeerConnectionInterface implementation. | 25 // PeerConnectionInterface implementation. |
25 virtual void ProcessSignalingMessage(const std::string& msg) OVERRIDE; | 26 virtual void ProcessSignalingMessage(const std::string& msg) OVERRIDE; |
26 virtual bool Send(const std::string& msg) OVERRIDE; | 27 virtual bool Send(const std::string& msg) OVERRIDE; |
27 virtual talk_base::scoped_refptr<StreamCollectionInterface> | 28 virtual talk_base::scoped_refptr<StreamCollectionInterface> |
28 local_streams() OVERRIDE; | 29 local_streams() OVERRIDE; |
29 virtual talk_base::scoped_refptr<StreamCollectionInterface> | 30 virtual talk_base::scoped_refptr<StreamCollectionInterface> |
30 remote_streams() OVERRIDE; | 31 remote_streams() OVERRIDE; |
31 virtual void AddStream(LocalMediaStreamInterface* stream) OVERRIDE; | 32 virtual void AddStream(LocalMediaStreamInterface* stream) OVERRIDE; |
32 virtual void RemoveStream(LocalMediaStreamInterface* stream) OVERRIDE; | 33 virtual void RemoveStream(LocalMediaStreamInterface* stream) OVERRIDE; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 std::string ice_label_; | 95 std::string ice_label_; |
95 std::string ice_sdp_; | 96 std::string ice_sdp_; |
96 ReadyState ready_state_; | 97 ReadyState ready_state_; |
97 | 98 |
98 DISALLOW_COPY_AND_ASSIGN(MockPeerConnectionImpl); | 99 DISALLOW_COPY_AND_ASSIGN(MockPeerConnectionImpl); |
99 }; | 100 }; |
100 | 101 |
101 } // namespace webrtc | 102 } // namespace webrtc |
102 | 103 |
103 #endif // CONTENT_RENDERER_MEDIA_MOCK_PEER_CONNECTION_IMPL_H_ | 104 #endif // CONTENT_RENDERER_MEDIA_MOCK_PEER_CONNECTION_IMPL_H_ |
OLD | NEW |