| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |