Chromium Code Reviews

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

Issue 2041593002: Revert "Revert of Update the BWE when the network route changes. (patchset #5 id:180001 of https://… (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Mark a route as disconnect if it is not ready to send media Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
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 458 matching lines...)
469 public: 469 public:
470 FakeCandidatePair(const Candidate& local_candidate, 470 FakeCandidatePair(const Candidate& local_candidate,
471 const Candidate& remote_candidate) 471 const Candidate& remote_candidate)
472 : local_candidate_(local_candidate), 472 : local_candidate_(local_candidate),
473 remote_candidate_(remote_candidate) {} 473 remote_candidate_(remote_candidate) {}
474 const Candidate& local_candidate() const override { return local_candidate_; } 474 const Candidate& local_candidate() const override { return local_candidate_; }
475 const Candidate& remote_candidate() const override { 475 const Candidate& remote_candidate() const override {
476 return remote_candidate_; 476 return remote_candidate_;
477 } 477 }
478 478
479 bool ReadyToSendMedia() const override { return true; }
480
479 private: 481 private:
480 Candidate local_candidate_; 482 Candidate local_candidate_;
481 Candidate remote_candidate_; 483 Candidate remote_candidate_;
482 }; 484 };
483 485
484 // Fake TransportController class, which can be passed into a BaseChannel object 486 // Fake TransportController class, which can be passed into a BaseChannel object
485 // for test purposes. Can be connected to other FakeTransportControllers via 487 // for test purposes. Can be connected to other FakeTransportControllers via
486 // Connect(). 488 // Connect().
487 // 489 //
488 // This fake is unusual in that for the most part, it's implemented with the 490 // This fake is unusual in that for the most part, it's implemented with the
(...skipping 93 matching lines...)
582 } 584 }
583 } 585 }
584 586
585 private: 587 private:
586 bool fail_create_channel_; 588 bool fail_create_channel_;
587 }; 589 };
588 590
589 } // namespace cricket 591 } // namespace cricket
590 592
591 #endif // WEBRTC_P2P_BASE_FAKETRANSPORTCONTROLLER_H_ 593 #endif // WEBRTC_P2P_BASE_FAKETRANSPORTCONTROLLER_H_
OLDNEW

Powered by Google App Engine