| 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 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 #include "media/filters/chunk_demuxer.h" | 29 #include "media/filters/chunk_demuxer.h" |
| 30 #include "media/renderers/renderer_impl.h" | 30 #include "media/renderers/renderer_impl.h" |
| 31 #include "media/test/pipeline_integration_test_base.h" | 31 #include "media/test/pipeline_integration_test_base.h" |
| 32 #include "testing/gmock/include/gmock/gmock.h" | 32 #include "testing/gmock/include/gmock/gmock.h" |
| 33 #include "url/gurl.h" | 33 #include "url/gurl.h" |
| 34 | 34 |
| 35 #if defined(MOJO_RENDERER) | 35 #if defined(MOJO_RENDERER) |
| 36 #include "media/mojo/interfaces/renderer.mojom.h" | 36 #include "media/mojo/interfaces/renderer.mojom.h" |
| 37 #include "media/mojo/interfaces/service_factory.mojom.h" | 37 #include "media/mojo/interfaces/service_factory.mojom.h" |
| 38 #include "media/mojo/services/mojo_renderer_impl.h" | 38 #include "media/mojo/services/mojo_renderer_impl.h" |
| 39 #include "mojo/shell/public/cpp/application_test_base.h" | 39 #include "services/shell/public/cpp/application_test_base.h" |
| 40 #include "mojo/shell/public/cpp/connect.h" | 40 #include "services/shell/public/cpp/connect.h" |
| 41 | 41 |
| 42 // TODO(dalecurtis): The mojo renderer is in another process, so we have no way | 42 // TODO(dalecurtis): The mojo renderer is in another process, so we have no way |
| 43 // currently to get hashes for video and audio samples. This also means that | 43 // currently to get hashes for video and audio samples. This also means that |
| 44 // real audio plays out for each test. | 44 // real audio plays out for each test. |
| 45 #define EXPECT_HASH_EQ(a, b) | 45 #define EXPECT_HASH_EQ(a, b) |
| 46 #define EXPECT_VIDEO_FORMAT_EQ(a, b) | 46 #define EXPECT_VIDEO_FORMAT_EQ(a, b) |
| 47 #define EXPECT_COLOR_SPACE_EQ(a, b) | 47 #define EXPECT_COLOR_SPACE_EQ(a, b) |
| 48 | 48 |
| 49 // TODO(xhwang): EME support is not complete for the mojo renderer, so all | 49 // TODO(xhwang): EME support is not complete for the mojo renderer, so all |
| 50 // encrypted tests are currently disabled. | 50 // encrypted tests are currently disabled. |
| (...skipping 2078 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2129 | 2129 |
| 2130 TEST_F(PipelineIntegrationTest, BasicPlaybackPositiveStartTime) { | 2130 TEST_F(PipelineIntegrationTest, BasicPlaybackPositiveStartTime) { |
| 2131 ASSERT_EQ(PIPELINE_OK, Start("nonzero-start-time.webm")); | 2131 ASSERT_EQ(PIPELINE_OK, Start("nonzero-start-time.webm")); |
| 2132 Play(); | 2132 Play(); |
| 2133 ASSERT_TRUE(WaitUntilOnEnded()); | 2133 ASSERT_TRUE(WaitUntilOnEnded()); |
| 2134 ASSERT_EQ(base::TimeDelta::FromMicroseconds(396000), | 2134 ASSERT_EQ(base::TimeDelta::FromMicroseconds(396000), |
| 2135 demuxer_->GetStartTime()); | 2135 demuxer_->GetStartTime()); |
| 2136 } | 2136 } |
| 2137 | 2137 |
| 2138 } // namespace media | 2138 } // namespace media |
| OLD | NEW |