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