OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/common/service_process_util.h" | 5 #include "chrome/common/service_process_util.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "base/location.h" | 12 #include "base/location.h" |
| 13 #include "base/message_loop/message_loop.h" |
13 #include "base/process/kill.h" | 14 #include "base/process/kill.h" |
14 #include "base/process/launch.h" | 15 #include "base/process/launch.h" |
15 #include "base/run_loop.h" | 16 #include "base/run_loop.h" |
16 #include "base/single_thread_task_runner.h" | 17 #include "base/single_thread_task_runner.h" |
17 #include "base/strings/string_split.h" | 18 #include "base/strings/string_split.h" |
18 #include "base/threading/platform_thread.h" | 19 #include "base/threading/platform_thread.h" |
19 #include "build/build_config.h" | 20 #include "build/build_config.h" |
20 | 21 |
21 #if !defined(OS_MACOSX) | 22 #if !defined(OS_MACOSX) |
22 #include "base/at_exit.h" | 23 #include "base/at_exit.h" |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 message_loop.task_runner()->PostDelayedTask( | 243 message_loop.task_runner()->PostDelayedTask( |
243 FROM_HERE, run_loop.QuitWhenIdleClosure(), | 244 FROM_HERE, run_loop.QuitWhenIdleClosure(), |
244 TestTimeouts::action_max_timeout()); | 245 TestTimeouts::action_max_timeout()); |
245 EXPECT_FALSE(g_good_shutdown); | 246 EXPECT_FALSE(g_good_shutdown); |
246 run_loop.Run(); | 247 run_loop.Run(); |
247 EXPECT_TRUE(g_good_shutdown); | 248 EXPECT_TRUE(g_good_shutdown); |
248 return 0; | 249 return 0; |
249 } | 250 } |
250 | 251 |
251 #endif // !OS_MACOSX | 252 #endif // !OS_MACOSX |
OLD | NEW |