Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Side by Side Diff: webrtc/p2p/base/faketransportcontroller.h

Issue 2396513003: Restore thread name consistency for webrtc/p2p/ . (Closed)
Patch Set: Do not reuse terms 'network thread' or 'worker thread' for the test relayserver. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698