| 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_manager.h" | 5 #include "media/audio/audio_debug_recording_manager.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
| 13 #include "base/single_thread_task_runner.h" |
| 13 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
| 14 #include "base/test/test_message_loop.h" | 15 #include "base/test/test_message_loop.h" |
| 15 #include "media/audio/audio_debug_recording_helper.h" | 16 #include "media/audio/audio_debug_recording_helper.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 | 21 |
| 21 #if defined(OS_WIN) | 22 #if defined(OS_WIN) |
| 22 #define IntToStringType base::IntToString16 | 23 #define IntToStringType base::IntToString16 |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 for (const auto& recorder : recorders) { | 220 for (const auto& recorder : recorders) { |
| 220 MockAudioDebugRecordingHelper* mock_recording_helper = | 221 MockAudioDebugRecordingHelper* mock_recording_helper = |
| 221 static_cast<MockAudioDebugRecordingHelper*>(recorder.get()); | 222 static_cast<MockAudioDebugRecordingHelper*>(recorder.get()); |
| 222 EXPECT_CALL(*mock_recording_helper, DisableDebugRecording()); | 223 EXPECT_CALL(*mock_recording_helper, DisableDebugRecording()); |
| 223 } | 224 } |
| 224 | 225 |
| 225 manager_.DisableDebugRecording(); | 226 manager_.DisableDebugRecording(); |
| 226 } | 227 } |
| 227 | 228 |
| 228 } // namespace media | 229 } // namespace media |
| OLD | NEW |