| 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 "base/bind.h" | 5 #include "base/bind.h" |
| 6 #include "base/callback_helpers.h" | 6 #include "base/callback_helpers.h" |
| 7 #include "base/format_macros.h" | 7 #include "base/format_macros.h" |
| 8 #include "base/macros.h" |
| 8 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
| 9 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
| 10 #include "base/test/simple_test_tick_clock.h" | 11 #include "base/test/simple_test_tick_clock.h" |
| 11 #include "media/base/audio_buffer_converter.h" | 12 #include "media/base/audio_buffer_converter.h" |
| 12 #include "media/base/audio_hardware_config.h" | 13 #include "media/base/audio_hardware_config.h" |
| 13 #include "media/base/audio_splicer.h" | 14 #include "media/base/audio_splicer.h" |
| 14 #include "media/base/fake_audio_renderer_sink.h" | 15 #include "media/base/fake_audio_renderer_sink.h" |
| 15 #include "media/base/gmock_callback_support.h" | 16 #include "media/base/gmock_callback_support.h" |
| 16 #include "media/base/media_util.h" | 17 #include "media/base/media_util.h" |
| 17 #include "media/base/mock_filters.h" | 18 #include "media/base/mock_filters.h" |
| (...skipping 865 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 883 // Advance far enough that we shouldn't be clamped to current time (tested | 884 // Advance far enough that we shouldn't be clamped to current time (tested |
| 884 // already above). | 885 // already above). |
| 885 tick_clock_->Advance(kOneSecond); | 886 tick_clock_->Advance(kOneSecond); |
| 886 EXPECT_EQ( | 887 EXPECT_EQ( |
| 887 current_time + timestamp_helper.GetFrameDuration(frames_to_consume.value), | 888 current_time + timestamp_helper.GetFrameDuration(frames_to_consume.value), |
| 888 CurrentMediaWallClockTime(&is_time_moving)); | 889 CurrentMediaWallClockTime(&is_time_moving)); |
| 889 EXPECT_TRUE(is_time_moving); | 890 EXPECT_TRUE(is_time_moving); |
| 890 } | 891 } |
| 891 | 892 |
| 892 } // namespace media | 893 } // namespace media |
| OLD | NEW |