| 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> |
| 6 #include <stdint.h> |
| 7 |
| 5 #include "base/bind.h" | 8 #include "base/bind.h" |
| 6 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/macros.h" |
| 7 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 8 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/strings/string_split.h" | 13 #include "base/strings/string_split.h" |
| 10 #include "base/strings/string_util.h" | 14 #include "base/strings/string_util.h" |
| 11 #include "build/build_config.h" | 15 #include "build/build_config.h" |
| 12 #include "media/base/cdm_callback_promise.h" | 16 #include "media/base/cdm_callback_promise.h" |
| 13 #include "media/base/cdm_context.h" | 17 #include "media/base/cdm_context.h" |
| 14 #include "media/base/cdm_key_information.h" | 18 #include "media/base/cdm_key_information.h" |
| 15 #include "media/base/decoder_buffer.h" | 19 #include "media/base/decoder_buffer.h" |
| 16 #include "media/base/media.h" | 20 #include "media/base/media.h" |
| (...skipping 1914 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1931 | 1935 |
| 1932 TEST_F(PipelineIntegrationTest, BasicPlaybackPositiveStartTime) { | 1936 TEST_F(PipelineIntegrationTest, BasicPlaybackPositiveStartTime) { |
| 1933 ASSERT_EQ(PIPELINE_OK, Start("nonzero-start-time.webm")); | 1937 ASSERT_EQ(PIPELINE_OK, Start("nonzero-start-time.webm")); |
| 1934 Play(); | 1938 Play(); |
| 1935 ASSERT_TRUE(WaitUntilOnEnded()); | 1939 ASSERT_TRUE(WaitUntilOnEnded()); |
| 1936 ASSERT_EQ(base::TimeDelta::FromMicroseconds(396000), | 1940 ASSERT_EQ(base::TimeDelta::FromMicroseconds(396000), |
| 1937 demuxer_->GetStartTime()); | 1941 demuxer_->GetStartTime()); |
| 1938 } | 1942 } |
| 1939 | 1943 |
| 1940 } // namespace media | 1944 } // namespace media |
| OLD | NEW |