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 "media/renderers/audio_renderer_impl.h" | 5 #include "media/renderers/audio_renderer_impl.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/callback_helpers.h" | 12 #include "base/callback_helpers.h" |
13 #include "base/format_macros.h" | 13 #include "base/format_macros.h" |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "base/memory/ptr_util.h" | 15 #include "base/memory/ptr_util.h" |
| 16 #include "base/message_loop/message_loop.h" |
16 #include "base/run_loop.h" | 17 #include "base/run_loop.h" |
17 #include "base/single_thread_task_runner.h" | 18 #include "base/single_thread_task_runner.h" |
18 #include "base/strings/stringprintf.h" | 19 #include "base/strings/stringprintf.h" |
19 #include "base/test/simple_test_tick_clock.h" | 20 #include "base/test/simple_test_tick_clock.h" |
20 #include "media/base/audio_buffer_converter.h" | 21 #include "media/base/audio_buffer_converter.h" |
21 #include "media/base/fake_audio_renderer_sink.h" | 22 #include "media/base/fake_audio_renderer_sink.h" |
22 #include "media/base/gmock_callback_support.h" | 23 #include "media/base/gmock_callback_support.h" |
23 #include "media/base/media_util.h" | 24 #include "media/base/media_util.h" |
24 #include "media/base/mock_filters.h" | 25 #include "media/base/mock_filters.h" |
25 #include "media/base/test_helpers.h" | 26 #include "media/base/test_helpers.h" |
(...skipping 1067 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1093 // Advance far enough that we shouldn't be clamped to current time (tested | 1094 // Advance far enough that we shouldn't be clamped to current time (tested |
1094 // already above). | 1095 // already above). |
1095 tick_clock_->Advance(kOneSecond); | 1096 tick_clock_->Advance(kOneSecond); |
1096 EXPECT_EQ( | 1097 EXPECT_EQ( |
1097 current_time + timestamp_helper.GetFrameDuration(frames_to_consume.value), | 1098 current_time + timestamp_helper.GetFrameDuration(frames_to_consume.value), |
1098 CurrentMediaWallClockTime(&is_time_moving)); | 1099 CurrentMediaWallClockTime(&is_time_moving)); |
1099 EXPECT_TRUE(is_time_moving); | 1100 EXPECT_TRUE(is_time_moving); |
1100 } | 1101 } |
1101 | 1102 |
1102 } // namespace media | 1103 } // namespace media |
OLD | NEW |