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

Side by Side Diff: chromecast/media/cma/backend/audio_video_pipeline_device_unittest.cc

Issue 837453003: Chromecast: virtual/override cleanup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: missed a few spots Created 5 years, 11 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include <vector> 5 #include <vector>
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/files/memory_mapped_file.h" 10 #include "base/files/memory_mapped_file.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 struct PauseInfo { 60 struct PauseInfo {
61 PauseInfo() {} 61 PauseInfo() {}
62 PauseInfo(base::TimeDelta d, base::TimeDelta l) : delay(d), length(l) {} 62 PauseInfo(base::TimeDelta d, base::TimeDelta l) : delay(d), length(l) {}
63 ~PauseInfo() {} 63 ~PauseInfo() {}
64 64
65 base::TimeDelta delay; 65 base::TimeDelta delay;
66 base::TimeDelta length; 66 base::TimeDelta length;
67 }; 67 };
68 68
69 AudioVideoPipelineDeviceTest(); 69 AudioVideoPipelineDeviceTest();
70 virtual ~AudioVideoPipelineDeviceTest(); 70 ~AudioVideoPipelineDeviceTest() override;
71 71
72 void ConfigureForFile(std::string filename); 72 void ConfigureForFile(std::string filename);
73 void ConfigureForAudioOnly(std::string filename); 73 void ConfigureForAudioOnly(std::string filename);
74 void ConfigureForVideoOnly(std::string filename, bool raw_h264); 74 void ConfigureForVideoOnly(std::string filename, bool raw_h264);
75 75
76 // Pattern loops, waiting >= pattern[i].delay against media clock between 76 // Pattern loops, waiting >= pattern[i].delay against media clock between
77 // pauses, then pausing for >= pattern[i].length against MessageLoop 77 // pauses, then pausing for >= pattern[i].length against MessageLoop
78 // A pause with delay <0 signals to stop sequence and do not loop 78 // A pause with delay <0 signals to stop sequence and do not loop
79 void SetPausePattern(const std::vector<PauseInfo> pattern); 79 void SetPausePattern(const std::vector<PauseInfo> pattern);
80 80
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 TEST_F(AudioVideoPipelineDeviceTest, WebmPlayback) { 377 TEST_F(AudioVideoPipelineDeviceTest, WebmPlayback) {
378 scoped_ptr<base::MessageLoop> message_loop(new base::MessageLoop()); 378 scoped_ptr<base::MessageLoop> message_loop(new base::MessageLoop());
379 379
380 ConfigureForFile("bear-640x360.webm"); 380 ConfigureForFile("bear-640x360.webm");
381 Start(); 381 Start();
382 message_loop->Run(); 382 message_loop->Run();
383 } 383 }
384 384
385 } // namespace media 385 } // namespace media
386 } // namespace chromecast 386 } // namespace chromecast
OLDNEW
« no previous file with comments | « chromecast/media/cma/backend/audio_pipeline_device.h ('k') | chromecast/media/cma/backend/media_pipeline_device_fake.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698