OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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/audio/audio_debug_recording_helper.h" | 5 #include "media/audio/audio_debug_recording_helper.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
11 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
| 12 #include "base/single_thread_task_runner.h" |
12 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
13 #include "base/test/test_message_loop.h" | 14 #include "base/test/test_message_loop.h" |
14 #include "media/base/audio_bus.h" | 15 #include "media/base/audio_bus.h" |
15 #include "media/base/audio_sample_types.h" | 16 #include "media/base/audio_sample_types.h" |
16 #include "testing/gmock/include/gmock/gmock.h" | 17 #include "testing/gmock/include/gmock/gmock.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
18 | 19 |
19 using testing::_; | 20 using testing::_; |
20 using testing::Return; | 21 using testing::Return; |
21 | 22 |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 | 250 |
250 EXPECT_CALL(*mock_audio_file_writer, Stop()); | 251 EXPECT_CALL(*mock_audio_file_writer, Stop()); |
251 DisableDebugRecording(recording_helper.get()); | 252 DisableDebugRecording(recording_helper.get()); |
252 | 253 |
253 // This call should not yield a DoWrite() call on the mock either. | 254 // This call should not yield a DoWrite() call on the mock either. |
254 recording_helper->OnData(audio_bus.get()); | 255 recording_helper->OnData(audio_bus.get()); |
255 base::RunLoop().RunUntilIdle(); | 256 base::RunLoop().RunUntilIdle(); |
256 } | 257 } |
257 | 258 |
258 } // namespace media | 259 } // namespace media |
OLD | NEW |