OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2009 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2009 The WebRTC Project Authors. All rights reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #ifndef WEBRTC_P2P_BASE_FAKETRANSPORTCONTROLLER_H_ | 11 #ifndef WEBRTC_P2P_BASE_FAKETRANSPORTCONTROLLER_H_ |
12 #define WEBRTC_P2P_BASE_FAKETRANSPORTCONTROLLER_H_ | 12 #define WEBRTC_P2P_BASE_FAKETRANSPORTCONTROLLER_H_ |
13 | 13 |
14 #include <memory> | 14 #include <memory> |
15 #include <string> | 15 #include <string> |
16 #include <vector> | 16 #include <vector> |
17 | 17 |
| 18 #include "webrtc/base/bind.h" |
| 19 #include "webrtc/base/sslfingerprint.h" |
| 20 #include "webrtc/base/thread.h" |
18 #include "webrtc/p2p/base/fakedtlstransport.h" | 21 #include "webrtc/p2p/base/fakedtlstransport.h" |
19 #include "webrtc/p2p/base/fakeicetransport.h" | 22 #include "webrtc/p2p/base/fakeicetransport.h" |
20 #include "webrtc/p2p/base/transportcontroller.h" | 23 #include "webrtc/p2p/base/transportcontroller.h" |
21 #include "webrtc/rtc_base/bind.h" | |
22 #include "webrtc/rtc_base/sslfingerprint.h" | |
23 #include "webrtc/rtc_base/thread.h" | |
24 | 24 |
25 namespace cricket { | 25 namespace cricket { |
26 | 26 |
27 // Fake TransportController class, which can be passed into a WebRtcSession | 27 // Fake TransportController class, which can be passed into a WebRtcSession |
28 // object for test purposes. Can be connected to other FakeTransportControllers | 28 // object for test purposes. Can be connected to other FakeTransportControllers |
29 // via Connect(). | 29 // via Connect(). |
30 // | 30 // |
31 // This fake is unusual in that for the most part, it's implemented with the | 31 // This fake is unusual in that for the most part, it's implemented with the |
32 // real TransportController code, but with fake TransportChannels underneath. | 32 // real TransportController code, but with fake TransportChannels underneath. |
33 class FakeTransportController : public TransportController { | 33 class FakeTransportController : public TransportController { |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 bool asymmetric = false; | 150 bool asymmetric = false; |
151 local->SetDestination(remote, asymmetric); | 151 local->SetDestination(remote, asymmetric); |
152 } | 152 } |
153 } | 153 } |
154 } | 154 } |
155 }; | 155 }; |
156 | 156 |
157 } // namespace cricket | 157 } // namespace cricket |
158 | 158 |
159 #endif // WEBRTC_P2P_BASE_FAKETRANSPORTCONTROLLER_H_ | 159 #endif // WEBRTC_P2P_BASE_FAKETRANSPORTCONTROLLER_H_ |
OLD | NEW |