| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <stddef.h> | 5 #include <stddef.h> |
| 6 #include <stdint.h> | 6 #include <stdint.h> |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 1432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1443 } | 1443 } |
| 1444 | 1444 |
| 1445 #if defined(ARCH_CPU_X86_FAMILY) && !defined(OS_ANDROID) | 1445 #if defined(ARCH_CPU_X86_FAMILY) && !defined(OS_ANDROID) |
| 1446 TEST_F(PipelineIntegrationTest, BasicPlaybackHi10PVP9) { | 1446 TEST_F(PipelineIntegrationTest, BasicPlaybackHi10PVP9) { |
| 1447 ASSERT_EQ(PIPELINE_OK, Start("bear-320x180-hi10p-vp9.webm", kClockless)); | 1447 ASSERT_EQ(PIPELINE_OK, Start("bear-320x180-hi10p-vp9.webm", kClockless)); |
| 1448 | 1448 |
| 1449 Play(); | 1449 Play(); |
| 1450 | 1450 |
| 1451 ASSERT_TRUE(WaitUntilOnEnded()); | 1451 ASSERT_TRUE(WaitUntilOnEnded()); |
| 1452 } | 1452 } |
| 1453 |
| 1454 TEST_F(PipelineIntegrationTest, BasicPlaybackHi12PVP9) { |
| 1455 ASSERT_EQ(PIPELINE_OK, Start("bear-320x180-hi12p-vp9.webm", kClockless)); |
| 1456 |
| 1457 Play(); |
| 1458 |
| 1459 ASSERT_TRUE(WaitUntilOnEnded()); |
| 1460 } |
| 1453 #endif | 1461 #endif |
| 1454 | 1462 |
| 1455 #if defined(USE_PROPRIETARY_CODECS) | 1463 #if defined(USE_PROPRIETARY_CODECS) |
| 1456 | 1464 |
| 1457 TEST_F(PipelineIntegrationTest, BasicPlaybackHi10P) { | 1465 TEST_F(PipelineIntegrationTest, BasicPlaybackHi10P) { |
| 1458 ASSERT_EQ(PIPELINE_OK, Start("bear-320x180-hi10p.mp4", kClockless)); | 1466 ASSERT_EQ(PIPELINE_OK, Start("bear-320x180-hi10p.mp4", kClockless)); |
| 1459 | 1467 |
| 1460 Play(); | 1468 Play(); |
| 1461 | 1469 |
| 1462 ASSERT_TRUE(WaitUntilOnEnded()); | 1470 ASSERT_TRUE(WaitUntilOnEnded()); |
| (...skipping 922 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2385 | 2393 |
| 2386 TEST_F(PipelineIntegrationTest, BasicPlaybackPositiveStartTime) { | 2394 TEST_F(PipelineIntegrationTest, BasicPlaybackPositiveStartTime) { |
| 2387 ASSERT_EQ(PIPELINE_OK, Start("nonzero-start-time.webm")); | 2395 ASSERT_EQ(PIPELINE_OK, Start("nonzero-start-time.webm")); |
| 2388 Play(); | 2396 Play(); |
| 2389 ASSERT_TRUE(WaitUntilOnEnded()); | 2397 ASSERT_TRUE(WaitUntilOnEnded()); |
| 2390 ASSERT_EQ(base::TimeDelta::FromMicroseconds(396000), | 2398 ASSERT_EQ(base::TimeDelta::FromMicroseconds(396000), |
| 2391 demuxer_->GetStartTime()); | 2399 demuxer_->GetStartTime()); |
| 2392 } | 2400 } |
| 2393 | 2401 |
| 2394 } // namespace media | 2402 } // namespace media |
| OLD | NEW |