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

Side by Side Diff: media/cast/test/end2end_unittest.cc

Issue 131233007: Cast: Clean up injection of transport into PacedPacketSender (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merged Created 6 years, 10 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 | « media/cast/rtcp/rtcp_unittest.cc ('k') | media/cast/transport/cast_transport_sender_impl.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 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // This test generate synthetic data. For audio it's a sinusoid waveform with 5 // This test generate synthetic data. For audio it's a sinusoid waveform with
6 // frequency kSoundFrequency and different amplitudes. For video it's a pattern 6 // frequency kSoundFrequency and different amplitudes. For video it's a pattern
7 // that is shifting by one pixel per frame, each pixels neighbors right and down 7 // that is shifting by one pixel per frame, each pixels neighbors right and down
8 // is this pixels value +1, since the pixel value is 8 bit it will wrap 8 // is this pixels value +1, since the pixel value is 8 bit it will wrap
9 // frequently within the image. Visually this will create diagonally color bands 9 // frequently within the image. Visually this will create diagonally color bands
10 // that moves across the screen 10 // that moves across the screen
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 void Create() { 407 void Create() {
408 cast_receiver_.reset(CastReceiver::CreateCastReceiver( 408 cast_receiver_.reset(CastReceiver::CreateCastReceiver(
409 cast_environment_, 409 cast_environment_,
410 audio_receiver_config_, 410 audio_receiver_config_,
411 video_receiver_config_, 411 video_receiver_config_,
412 &receiver_to_sender_)); 412 &receiver_to_sender_));
413 transport_sender_.reset(new transport::CastTransportSenderImpl( 413 transport_sender_.reset(new transport::CastTransportSenderImpl(
414 testing_clock_, 414 testing_clock_,
415 transport_config_, 415 transport_config_,
416 base::Bind(&UpdateCastTransportStatus), 416 base::Bind(&UpdateCastTransportStatus),
417 transport_task_runner_)); 417 transport_task_runner_,
418 transport_sender_->InsertFakeTransportForTesting(&sender_to_receiver_); 418 &sender_to_receiver_));
419 419
420 cast_sender_.reset(CastSender::CreateCastSender( 420 cast_sender_.reset(CastSender::CreateCastSender(
421 cast_environment_, 421 cast_environment_,
422 audio_sender_config_, 422 audio_sender_config_,
423 video_sender_config_, 423 video_sender_config_,
424 NULL, 424 NULL,
425 base::Bind(&End2EndTest::InitializationResult, base::Unretained(this)), 425 base::Bind(&End2EndTest::InitializationResult, base::Unretained(this)),
426 transport_sender_.get())); 426 transport_sender_.get()));
427 427
428 receiver_to_sender_.SetPacketReceiver(cast_sender_->packet_receiver()); 428 receiver_to_sender_.SetPacketReceiver(cast_sender_->packet_receiver());
(...skipping 685 matching lines...) Expand 10 before | Expand all | Expand 10 after
1114 } 1114 }
1115 1115
1116 1116
1117 // TODO(pwestin): Add repeatable packet loss test. 1117 // TODO(pwestin): Add repeatable packet loss test.
1118 // TODO(pwestin): Add test for misaligned send get calls. 1118 // TODO(pwestin): Add test for misaligned send get calls.
1119 // TODO(pwestin): Add more tests that does not resample. 1119 // TODO(pwestin): Add more tests that does not resample.
1120 // TODO(pwestin): Add test when we have starvation for our RunTask. 1120 // TODO(pwestin): Add test when we have starvation for our RunTask.
1121 1121
1122 } // namespace cast 1122 } // namespace cast
1123 } // namespace media 1123 } // namespace media
OLDNEW
« no previous file with comments | « media/cast/rtcp/rtcp_unittest.cc ('k') | media/cast/transport/cast_transport_sender_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698