Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(164)

Side by Side Diff: media/audio/audio_debug_recording_helper_unittest.cc

Issue 2884763002: Automated IWYU fix for TaskRunner includes. (Closed)
Patch Set: rebase on r472096 Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « jingle/glue/thread_wrapper.h ('k') | media/audio/audio_debug_recording_manager_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « jingle/glue/thread_wrapper.h ('k') | media/audio/audio_debug_recording_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698