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

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

Issue 145873007: Cast: Added missing DCHECKs to ThreadChecker calls and minor cleanup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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
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 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 task_runner_, 386 task_runner_,
387 task_runner_, 387 task_runner_,
388 task_runner_, 388 task_runner_,
389 task_runner_, 389 task_runner_,
390 task_runner_, 390 task_runner_,
391 task_runner_, 391 task_runner_,
392 GetLoggingConfigWithRawEventsAndStatsEnabled())), 392 GetLoggingConfigWithRawEventsAndStatsEnabled())),
393 receiver_to_sender_(cast_environment_), 393 receiver_to_sender_(cast_environment_),
394 sender_to_receiver_(cast_environment_), 394 sender_to_receiver_(cast_environment_),
395 test_receiver_audio_callback_(new TestReceiverAudioCallback()), 395 test_receiver_audio_callback_(new TestReceiverAudioCallback()),
396 test_receiver_video_callback_(new TestReceiverVideoCallback()), 396 test_receiver_video_callback_(new TestReceiverVideoCallback()) {
397 event_subscriber_(task_runner_) {
398 testing_clock_->Advance( 397 testing_clock_->Advance(
399 base::TimeDelta::FromMilliseconds(kStartMillisecond)); 398 base::TimeDelta::FromMilliseconds(kStartMillisecond));
400 cast_environment_->Logging()->AddRawEventSubscriber(&event_subscriber_); 399 cast_environment_->Logging()->AddRawEventSubscriber(&event_subscriber_);
401 } 400 }
402 401
403 void SetupConfig(transport::AudioCodec audio_codec, 402 void SetupConfig(transport::AudioCodec audio_codec,
404 int audio_sampling_frequency, 403 int audio_sampling_frequency,
405 // TODO(miu): 3rd arg is meaningless?!? 404 // TODO(miu): 3rd arg is meaningless?!?
406 bool external_audio_decoder, 405 bool external_audio_decoder,
407 int max_number_of_video_buffers_used) { 406 int max_number_of_video_buffers_used) {
(...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after
1268 EXPECT_EQ(total_event_count_for_frame, expected_event_count_for_frame); 1267 EXPECT_EQ(total_event_count_for_frame, expected_event_count_for_frame);
1269 } 1268 }
1270 1269
1271 // TODO(pwestin): Add repeatable packet loss test. 1270 // TODO(pwestin): Add repeatable packet loss test.
1272 // TODO(pwestin): Add test for misaligned send get calls. 1271 // TODO(pwestin): Add test for misaligned send get calls.
1273 // TODO(pwestin): Add more tests that does not resample. 1272 // TODO(pwestin): Add more tests that does not resample.
1274 // TODO(pwestin): Add test when we have starvation for our RunTask. 1273 // TODO(pwestin): Add test when we have starvation for our RunTask.
1275 1274
1276 } // namespace cast 1275 } // namespace cast
1277 } // namespace media 1276 } // namespace media
OLDNEW
« no previous file with comments | « media/cast/rtcp/sender_rtcp_event_subscriber_unittest.cc ('k') | media/cast/video_receiver/video_receiver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698