OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2017 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2017 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_FAKEICETRANSPORT_H_ | 11 #ifndef WEBRTC_P2P_BASE_FAKEICETRANSPORT_H_ |
12 #define WEBRTC_P2P_BASE_FAKEICETRANSPORT_H_ | 12 #define WEBRTC_P2P_BASE_FAKEICETRANSPORT_H_ |
13 | 13 |
14 #include <string> | 14 #include <string> |
15 | 15 |
| 16 #include "webrtc/base/asyncinvoker.h" |
| 17 #include "webrtc/base/copyonwritebuffer.h" |
16 #include "webrtc/p2p/base/icetransportinternal.h" | 18 #include "webrtc/p2p/base/icetransportinternal.h" |
17 #include "webrtc/rtc_base/asyncinvoker.h" | |
18 #include "webrtc/rtc_base/copyonwritebuffer.h" | |
19 | 19 |
20 namespace cricket { | 20 namespace cricket { |
21 | 21 |
22 class FakeIceTransport : public IceTransportInternal { | 22 class FakeIceTransport : public IceTransportInternal { |
23 public: | 23 public: |
24 explicit FakeIceTransport(const std::string& name, int component) | 24 explicit FakeIceTransport(const std::string& name, int component) |
25 : name_(name), component_(component) {} | 25 : name_(name), component_(component) {} |
26 ~FakeIceTransport() override { | 26 ~FakeIceTransport() override { |
27 if (dest_ && dest_->dest_ == this) { | 27 if (dest_ && dest_->dest_ == this) { |
28 dest_->dest_ = nullptr; | 28 dest_->dest_ = nullptr; |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 size_t connection_count_ = 0; | 231 size_t connection_count_ = 0; |
232 IceGatheringState gathering_state_ = kIceGatheringNew; | 232 IceGatheringState gathering_state_ = kIceGatheringNew; |
233 bool had_connection_ = false; | 233 bool had_connection_ = false; |
234 bool writable_ = false; | 234 bool writable_ = false; |
235 bool receiving_ = false; | 235 bool receiving_ = false; |
236 }; | 236 }; |
237 | 237 |
238 } // namespace cricket | 238 } // namespace cricket |
239 | 239 |
240 #endif // WEBRTC_P2P_BASE_FAKEICETRANSPORT_H_ | 240 #endif // WEBRTC_P2P_BASE_FAKEICETRANSPORT_H_ |
OLD | NEW |