| 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 |
| (...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 520 fail_create_channel_(false) {} | 520 fail_create_channel_(false) {} |
| 521 | 521 |
| 522 explicit FakeTransportController(IceRole role) | 522 explicit FakeTransportController(IceRole role) |
| 523 : TransportController(rtc::Thread::Current(), | 523 : TransportController(rtc::Thread::Current(), |
| 524 rtc::Thread::Current(), | 524 rtc::Thread::Current(), |
| 525 nullptr), | 525 nullptr), |
| 526 fail_create_channel_(false) { | 526 fail_create_channel_(false) { |
| 527 SetIceRole(role); | 527 SetIceRole(role); |
| 528 } | 528 } |
| 529 | 529 |
| 530 explicit FakeTransportController(rtc::Thread* worker_thread) | 530 explicit FakeTransportController(rtc::Thread* network_thread) |
| 531 : TransportController(rtc::Thread::Current(), worker_thread, nullptr), | 531 : TransportController(rtc::Thread::Current(), network_thread, nullptr), |
| 532 fail_create_channel_(false) {} | 532 fail_create_channel_(false) {} |
| 533 | 533 |
| 534 FakeTransportController(rtc::Thread* worker_thread, IceRole role) | 534 FakeTransportController(rtc::Thread* network_thread, IceRole role) |
| 535 : TransportController(rtc::Thread::Current(), worker_thread, nullptr), | 535 : TransportController(rtc::Thread::Current(), network_thread, nullptr), |
| 536 fail_create_channel_(false) { | 536 fail_create_channel_(false) { |
| 537 SetIceRole(role); | 537 SetIceRole(role); |
| 538 } | 538 } |
| 539 | 539 |
| 540 FakeTransport* GetTransport_n(const std::string& transport_name) { | 540 FakeTransport* GetTransport_n(const std::string& transport_name) { |
| 541 return static_cast<FakeTransport*>( | 541 return static_cast<FakeTransport*>( |
| 542 TransportController::GetTransport_n(transport_name)); | 542 TransportController::GetTransport_n(transport_name)); |
| 543 } | 543 } |
| 544 | 544 |
| 545 void Connect(FakeTransportController* dest) { | 545 void Connect(FakeTransportController* dest) { |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 611 } | 611 } |
| 612 } | 612 } |
| 613 | 613 |
| 614 private: | 614 private: |
| 615 bool fail_create_channel_; | 615 bool fail_create_channel_; |
| 616 }; | 616 }; |
| 617 | 617 |
| 618 } // namespace cricket | 618 } // namespace cricket |
| 619 | 619 |
| 620 #endif // WEBRTC_P2P_BASE_FAKETRANSPORTCONTROLLER_H_ | 620 #endif // WEBRTC_P2P_BASE_FAKETRANSPORTCONTROLLER_H_ |
| OLD | NEW |