OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 <stdint.h> | 5 #include <stdint.h> |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/macros.h" |
9 #include "base/timer/timer.h" | 10 #include "base/timer/timer.h" |
10 #include "media/base/android/demuxer_android.h" | 11 #include "media/base/android/demuxer_android.h" |
11 #include "media/base/android/media_codec_player.h" | 12 #include "media/base/android/media_codec_player.h" |
12 #include "media/base/android/media_codec_util.h" | 13 #include "media/base/android/media_codec_util.h" |
13 #include "media/base/android/media_player_manager.h" | 14 #include "media/base/android/media_player_manager.h" |
14 #include "media/base/android/media_task_runner.h" | 15 #include "media/base/android/media_task_runner.h" |
15 #include "media/base/android/sdk_media_codec_bridge.h" | 16 #include "media/base/android/sdk_media_codec_bridge.h" |
16 #include "media/base/android/test_data_factory.h" | 17 #include "media/base/android/test_data_factory.h" |
17 #include "media/base/android/test_statistics.h" | 18 #include "media/base/android/test_statistics.h" |
18 #include "media/base/timestamp_constants.h" | 19 #include "media/base/timestamp_constants.h" |
(...skipping 2247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2266 // TODO(timav): maybe we should not call the testing callback for | 2267 // TODO(timav): maybe we should not call the testing callback for |
2267 // kRenderAfterPreroll for video (for audio we already do not call). | 2268 // kRenderAfterPreroll for video (for audio we already do not call). |
2268 // EXPECT_TRUE(AlmostEqual(manager_.FirstFrameTime(DemuxerStream::AUDIO), | 2269 // EXPECT_TRUE(AlmostEqual(manager_.FirstFrameTime(DemuxerStream::AUDIO), |
2269 // manager_.FirstFrameTime(DemuxerStream::VIDEO), 50)); | 2270 // manager_.FirstFrameTime(DemuxerStream::VIDEO), 50)); |
2270 | 2271 |
2271 // The playback should start at |seek_position| | 2272 // The playback should start at |seek_position| |
2272 EXPECT_TRUE(AlmostEqual(seek_position, manager_.pts_stat_.min(), 25)); | 2273 EXPECT_TRUE(AlmostEqual(seek_position, manager_.pts_stat_.min(), 25)); |
2273 } | 2274 } |
2274 | 2275 |
2275 } // namespace media | 2276 } // namespace media |
OLD | NEW |