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

Side by Side Diff: webrtc/test/call_test.cc

Issue 2784543002: Revert of Don't hardcode MediaType::ANY in FakeNetworkPipe. (Closed)
Patch Set: Created 3 years, 8 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 | « webrtc/test/call_test.h ('k') | webrtc/test/direct_transport.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 (c) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 451
452 Call::Config BaseTest::GetReceiverCallConfig() { 452 Call::Config BaseTest::GetReceiverCallConfig() {
453 return Call::Config(&event_log_); 453 return Call::Config(&event_log_);
454 } 454 }
455 455
456 void BaseTest::OnCallsCreated(Call* sender_call, Call* receiver_call) { 456 void BaseTest::OnCallsCreated(Call* sender_call, Call* receiver_call) {
457 } 457 }
458 458
459 test::PacketTransport* BaseTest::CreateSendTransport(Call* sender_call) { 459 test::PacketTransport* BaseTest::CreateSendTransport(Call* sender_call) {
460 return new PacketTransport(sender_call, this, test::PacketTransport::kSender, 460 return new PacketTransport(sender_call, this, test::PacketTransport::kSender,
461 MediaType::VIDEO,
462 FakeNetworkPipe::Config()); 461 FakeNetworkPipe::Config());
463 } 462 }
464 463
465 test::PacketTransport* BaseTest::CreateReceiveTransport() { 464 test::PacketTransport* BaseTest::CreateReceiveTransport() {
466 return new PacketTransport(nullptr, this, test::PacketTransport::kReceiver, 465 return new PacketTransport(nullptr, this, test::PacketTransport::kReceiver,
467 MediaType::VIDEO,
468 FakeNetworkPipe::Config()); 466 FakeNetworkPipe::Config());
469 } 467 }
470 468
471 size_t BaseTest::GetNumVideoStreams() const { 469 size_t BaseTest::GetNumVideoStreams() const {
472 return 1; 470 return 1;
473 } 471 }
474 472
475 size_t BaseTest::GetNumAudioStreams() const { 473 size_t BaseTest::GetNumAudioStreams() const {
476 return 0; 474 return 0;
477 } 475 }
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 523
526 EndToEndTest::EndToEndTest(unsigned int timeout_ms) : BaseTest(timeout_ms) { 524 EndToEndTest::EndToEndTest(unsigned int timeout_ms) : BaseTest(timeout_ms) {
527 } 525 }
528 526
529 bool EndToEndTest::ShouldCreateReceivers() const { 527 bool EndToEndTest::ShouldCreateReceivers() const {
530 return true; 528 return true;
531 } 529 }
532 530
533 } // namespace test 531 } // namespace test
534 } // namespace webrtc 532 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/test/call_test.h ('k') | webrtc/test/direct_transport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698