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 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | |
481 private: | 479 private: |
482 Candidate local_candidate_; | 480 Candidate local_candidate_; |
483 Candidate remote_candidate_; | 481 Candidate remote_candidate_; |
484 }; | 482 }; |
485 | 483 |
486 // Fake TransportController class, which can be passed into a BaseChannel object | 484 // Fake TransportController class, which can be passed into a BaseChannel object |
487 // for test purposes. Can be connected to other FakeTransportControllers via | 485 // for test purposes. Can be connected to other FakeTransportControllers via |
488 // Connect(). | 486 // Connect(). |
489 // | 487 // |
490 // This fake is unusual in that for the most part, it's implemented with the | 488 // This fake is unusual in that for the most part, it's implemented with the |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
585 } | 583 } |
586 } | 584 } |
587 | 585 |
588 private: | 586 private: |
589 bool fail_create_channel_; | 587 bool fail_create_channel_; |
590 }; | 588 }; |
591 | 589 |
592 } // namespace cricket | 590 } // namespace cricket |
593 | 591 |
594 #endif // WEBRTC_P2P_BASE_FAKETRANSPORTCONTROLLER_H_ | 592 #endif // WEBRTC_P2P_BASE_FAKETRANSPORTCONTROLLER_H_ |
OLD | NEW |