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

Side by Side Diff: media/gpu/avda_codec_allocator_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
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 "media/gpu/avda_codec_allocator.h" 5 #include "media/gpu/avda_codec_allocator.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <memory> 9 #include <memory>
10 10
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/single_thread_task_runner.h"
13 #include "base/test/simple_test_tick_clock.h" 14 #include "base/test/simple_test_tick_clock.h"
14 #include "base/time/tick_clock.h" 15 #include "base/time/tick_clock.h"
15 #include "testing/gmock/include/gmock/gmock.h" 16 #include "testing/gmock/include/gmock/gmock.h"
16 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
17 18
18 using testing::Invoke; 19 using testing::Invoke;
19 using testing::NiceMock; 20 using testing::NiceMock;
20 using testing::_; 21 using testing::_;
21 22
22 namespace media { 23 namespace media {
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 ->PostTask(FROM_HERE, 231 ->PostTask(FROM_HERE,
231 base::Bind(&SignalImmediately, &done_waiting_event)); 232 base::Bind(&SignalImmediately, &done_waiting_event));
232 wait_event.Signal(); 233 wait_event.Signal();
233 done_waiting_event.Wait(); 234 done_waiting_event.Wait();
234 235
235 // Verify that we've un-failed over. 236 // Verify that we've un-failed over.
236 ASSERT_EQ(AUTO_CODEC, TaskTypeForAllocation(false)); 237 ASSERT_EQ(AUTO_CODEC, TaskTypeForAllocation(false));
237 } 238 }
238 239
239 } // namespace media 240 } // namespace media
OLDNEW
« no previous file with comments | « media/gpu/avda_codec_allocator.cc ('k') | media/gpu/ipc/service/gpu_jpeg_decode_accelerator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698