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

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

Issue 2285453002: Add parameter to TransportController to not change ICE role on restart. (Closed)
Patch Set: Fixing copy-pasted comment. Created 4 years, 3 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
« no previous file with comments | « no previous file | webrtc/p2p/base/transportcontroller.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 486 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 // This fake is unusual in that for the most part, it's implemented with the 497 // This fake is unusual in that for the most part, it's implemented with the
498 // real TransportController code, but with fake TransportChannels underneath. 498 // real TransportController code, but with fake TransportChannels underneath.
499 class FakeTransportController : public TransportController { 499 class FakeTransportController : public TransportController {
500 public: 500 public:
501 FakeTransportController() 501 FakeTransportController()
502 : TransportController(rtc::Thread::Current(), 502 : TransportController(rtc::Thread::Current(),
503 rtc::Thread::Current(), 503 rtc::Thread::Current(),
504 nullptr), 504 nullptr),
505 fail_create_channel_(false) {} 505 fail_create_channel_(false) {}
506 506
507 explicit FakeTransportController(bool redetermine_role_on_ice_restart)
508 : TransportController(rtc::Thread::Current(),
509 rtc::Thread::Current(),
510 nullptr,
511 redetermine_role_on_ice_restart),
512 fail_create_channel_(false) {}
513
507 explicit FakeTransportController(IceRole role) 514 explicit FakeTransportController(IceRole role)
508 : TransportController(rtc::Thread::Current(), 515 : TransportController(rtc::Thread::Current(),
509 rtc::Thread::Current(), 516 rtc::Thread::Current(),
510 nullptr), 517 nullptr),
511 fail_create_channel_(false) { 518 fail_create_channel_(false) {
512 SetIceRole(role); 519 SetIceRole(role);
513 } 520 }
514 521
515 explicit FakeTransportController(rtc::Thread* worker_thread) 522 explicit FakeTransportController(rtc::Thread* worker_thread)
516 : TransportController(rtc::Thread::Current(), worker_thread, nullptr), 523 : TransportController(rtc::Thread::Current(), worker_thread, nullptr),
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 } 603 }
597 } 604 }
598 605
599 private: 606 private:
600 bool fail_create_channel_; 607 bool fail_create_channel_;
601 }; 608 };
602 609
603 } // namespace cricket 610 } // namespace cricket
604 611
605 #endif // WEBRTC_P2P_BASE_FAKETRANSPORTCONTROLLER_H_ 612 #endif // WEBRTC_P2P_BASE_FAKETRANSPORTCONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/p2p/base/transportcontroller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698