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

Side by Side Diff: base/message_loop/message_loop_unittest.cc

Issue 1968723002: Fix include path for moved thread_task_runner_handle.h header in base/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a1_move_task_runner_handle
Patch Set: Created 4 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 | « base/message_loop/message_loop_task_runner_unittest.cc ('k') | base/observer_list_threadsafe.h » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 <stddef.h> 5 #include <stddef.h>
6 #include <stdint.h> 6 #include <stdint.h>
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/bind_helpers.h" 11 #include "base/bind_helpers.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
16 #include "base/message_loop/message_loop.h" 16 #include "base/message_loop/message_loop.h"
17 #include "base/message_loop/message_loop_test.h" 17 #include "base/message_loop/message_loop_test.h"
18 #include "base/pending_task.h" 18 #include "base/pending_task.h"
19 #include "base/posix/eintr_wrapper.h" 19 #include "base/posix/eintr_wrapper.h"
20 #include "base/run_loop.h" 20 #include "base/run_loop.h"
21 #include "base/synchronization/waitable_event.h" 21 #include "base/synchronization/waitable_event.h"
22 #include "base/test/test_simple_task_runner.h" 22 #include "base/test/test_simple_task_runner.h"
23 #include "base/thread_task_runner_handle.h"
24 #include "base/threading/platform_thread.h" 23 #include "base/threading/platform_thread.h"
25 #include "base/threading/thread.h" 24 #include "base/threading/thread.h"
25 #include "base/threading/thread_task_runner_handle.h"
26 #include "build/build_config.h" 26 #include "build/build_config.h"
27 #include "testing/gtest/include/gtest/gtest.h" 27 #include "testing/gtest/include/gtest/gtest.h"
28 28
29 #if defined(OS_WIN) 29 #if defined(OS_WIN)
30 #include "base/message_loop/message_pump_win.h" 30 #include "base/message_loop/message_pump_win.h"
31 #include "base/process/memory.h" 31 #include "base/process/memory.h"
32 #include "base/strings/string16.h" 32 #include "base/strings/string16.h"
33 #include "base/win/current_module.h" 33 #include "base/win/current_module.h"
34 #include "base/win/scoped_handle.h" 34 #include "base/win/scoped_handle.h"
35 #endif 35 #endif
(...skipping 936 matching lines...) Expand 10 before | Expand all | Expand 10 after
972 // already has another active loop. This happens when thread creation fails. 972 // already has another active loop. This happens when thread creation fails.
973 MessageLoop loop; 973 MessageLoop loop;
974 std::unique_ptr<MessageLoop> unbound_loop(MessageLoop::CreateUnbound( 974 std::unique_ptr<MessageLoop> unbound_loop(MessageLoop::CreateUnbound(
975 MessageLoop::TYPE_DEFAULT, MessageLoop::MessagePumpFactoryCallback())); 975 MessageLoop::TYPE_DEFAULT, MessageLoop::MessagePumpFactoryCallback()));
976 unbound_loop.reset(); 976 unbound_loop.reset();
977 EXPECT_EQ(&loop, MessageLoop::current()); 977 EXPECT_EQ(&loop, MessageLoop::current());
978 EXPECT_EQ(loop.task_runner(), ThreadTaskRunnerHandle::Get()); 978 EXPECT_EQ(loop.task_runner(), ThreadTaskRunnerHandle::Get());
979 } 979 }
980 980
981 } // namespace base 981 } // namespace base
OLDNEW
« no previous file with comments | « base/message_loop/message_loop_task_runner_unittest.cc ('k') | base/observer_list_threadsafe.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698