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

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

Issue 661163004: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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/sender/video_sender_unittest.cc ('k') | media/cast/test/utility/tap_proxy.cc » ('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 612 matching lines...) Expand 10 before | Expand all | Expand 10 after
623 audio_frame_input_ = cast_sender_->audio_frame_input(); 623 audio_frame_input_ = cast_sender_->audio_frame_input();
624 video_frame_input_ = cast_sender_->video_frame_input(); 624 video_frame_input_ = cast_sender_->video_frame_input();
625 625
626 audio_bus_factory_.reset( 626 audio_bus_factory_.reset(
627 new TestAudioBusFactory(audio_sender_config_.channels, 627 new TestAudioBusFactory(audio_sender_config_.channels,
628 audio_sender_config_.frequency, 628 audio_sender_config_.frequency,
629 kSoundFrequency, 629 kSoundFrequency,
630 kSoundVolume)); 630 kSoundVolume));
631 } 631 }
632 632
633 virtual ~End2EndTest() { 633 ~End2EndTest() override {
634 cast_environment_sender_->Logging()->RemoveRawEventSubscriber( 634 cast_environment_sender_->Logging()->RemoveRawEventSubscriber(
635 &event_subscriber_sender_); 635 &event_subscriber_sender_);
636 } 636 }
637 637
638 virtual void TearDown() override { 638 void TearDown() override {
639 cast_sender_.reset(); 639 cast_sender_.reset();
640 cast_receiver_.reset(); 640 cast_receiver_.reset();
641 task_runner_->RunTasks(); 641 task_runner_->RunTasks();
642 } 642 }
643 643
644 void SendVideoFrame(int start_value, const base::TimeTicks& reference_time) { 644 void SendVideoFrame(int start_value, const base::TimeTicks& reference_time) {
645 if (start_time_.is_null()) 645 if (start_time_.is_null())
646 start_time_ = reference_time; 646 start_time_ = reference_time;
647 // TODO(miu): Consider using a slightly skewed clock for the media timestamp 647 // TODO(miu): Consider using a slightly skewed clock for the media timestamp
648 // since the video clock may not be the same as the reference clock. 648 // since the video clock may not be the same as the reference clock.
(...skipping 856 matching lines...) Expand 10 before | Expand all | Expand 10 after
1505 EXPECT_LT(jump, 220u); 1505 EXPECT_LT(jump, 220u);
1506 } 1506 }
1507 1507
1508 // TODO(pwestin): Add repeatable packet loss test. 1508 // TODO(pwestin): Add repeatable packet loss test.
1509 // TODO(pwestin): Add test for misaligned send get calls. 1509 // TODO(pwestin): Add test for misaligned send get calls.
1510 // TODO(pwestin): Add more tests that does not resample. 1510 // TODO(pwestin): Add more tests that does not resample.
1511 // TODO(pwestin): Add test when we have starvation for our RunTask. 1511 // TODO(pwestin): Add test when we have starvation for our RunTask.
1512 1512
1513 } // namespace cast 1513 } // namespace cast
1514 } // namespace media 1514 } // namespace media
OLDNEW
« no previous file with comments | « media/cast/sender/video_sender_unittest.cc ('k') | media/cast/test/utility/tap_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698