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 CONTENT_RENDERER_MEDIA_MOCK_DATA_CHANNEL_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_MOCK_DATA_CHANNEL_IMPL_H_ |
6 #define CONTENT_RENDERER_MEDIA_MOCK_DATA_CHANNEL_IMPL_H_ | 6 #define CONTENT_RENDERER_MEDIA_MOCK_DATA_CHANNEL_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
| 10 #include "base/macros.h" |
10 #include "third_party/libjingle/source/talk/app/webrtc/peerconnectioninterface.h
" | 11 #include "third_party/libjingle/source/talk/app/webrtc/peerconnectioninterface.h
" |
11 | 12 |
12 namespace content { | 13 namespace content { |
13 | 14 |
14 class MockDataChannel : public webrtc::DataChannelInterface { | 15 class MockDataChannel : public webrtc::DataChannelInterface { |
15 public: | 16 public: |
16 MockDataChannel(const std::string& label, | 17 MockDataChannel(const std::string& label, |
17 const webrtc::DataChannelInit* config); | 18 const webrtc::DataChannelInit* config); |
18 | 19 |
19 void RegisterObserver(webrtc::DataChannelObserver* observer) override; | 20 void RegisterObserver(webrtc::DataChannelObserver* observer) override; |
(...skipping 23 matching lines...) Expand all Loading... |
43 webrtc::DataChannelInterface::DataState state_; | 44 webrtc::DataChannelInterface::DataState state_; |
44 webrtc::DataChannelInit config_; | 45 webrtc::DataChannelInit config_; |
45 webrtc::DataChannelObserver* observer_; | 46 webrtc::DataChannelObserver* observer_; |
46 | 47 |
47 DISALLOW_COPY_AND_ASSIGN(MockDataChannel); | 48 DISALLOW_COPY_AND_ASSIGN(MockDataChannel); |
48 }; | 49 }; |
49 | 50 |
50 } // namespace content | 51 } // namespace content |
51 | 52 |
52 #endif // CONTENT_RENDERER_MEDIA_MOCK_DATA_CHANNEL_IMPL_H_ | 53 #endif // CONTENT_RENDERER_MEDIA_MOCK_DATA_CHANNEL_IMPL_H_ |
OLD | NEW |