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

Side by Side Diff: content/renderer/media/audio_renderer_sink_cache_unittest.cc

Issue 2365623003: Remove unused thread.h include in trace_event_impl.h and fix IWUU. (Closed)
Patch Set: Whitelist base DEPS for all web/tests Created 4 years, 2 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 <array> 5 #include <array>
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/test/test_simple_task_runner.h" 10 #include "base/test/test_simple_task_runner.h"
11 #include "base/test/test_timeouts.h" 11 #include "base/test/test_timeouts.h"
12 #include "base/threading/thread.h"
12 #include "content/renderer/media/audio_renderer_sink_cache_impl.h" 13 #include "content/renderer/media/audio_renderer_sink_cache_impl.h"
13 #include "media/audio/audio_device_description.h" 14 #include "media/audio/audio_device_description.h"
14 #include "media/base/audio_parameters.h" 15 #include "media/base/audio_parameters.h"
15 #include "media/base/mock_audio_renderer_sink.h" 16 #include "media/base/mock_audio_renderer_sink.h"
16 #include "media/base/test_helpers.h" 17 #include "media/base/test_helpers.h"
17 #include "testing/gmock/include/gmock/gmock.h" 18 #include "testing/gmock/include/gmock/gmock.h"
18 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
19 #include "url/gurl.h" 20 #include "url/gurl.h"
20 21
21 namespace content { 22 namespace content {
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 // Wait for completion of all the tasks posted to at least one thread. 366 // Wait for completion of all the tasks posted to at least one thread.
366 media::WaitableMessageLoopEvent loop_event( 367 media::WaitableMessageLoopEvent loop_event(
367 TestTimeouts::action_max_timeout()); 368 TestTimeouts::action_max_timeout());
368 threads[kThreadCount - 1]->task_runner()->PostTaskAndReply( 369 threads[kThreadCount - 1]->task_runner()->PostTaskAndReply(
369 FROM_HERE, base::Bind(&base::DoNothing), loop_event.GetClosure()); 370 FROM_HERE, base::Bind(&base::DoNothing), loop_event.GetClosure());
370 // Runs the loop and waits for the thread to call event's closure. 371 // Runs the loop and waits for the thread to call event's closure.
371 loop_event.RunAndWait(); 372 loop_event.RunAndWait();
372 } 373 }
373 374
374 } // namespace content 375 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698