OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "services/service_manager/runner/host/service_process_launcher.h" | 5 #include "services/service_manager/runner/host/service_process_launcher.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "base/message_loop/message_loop.h" | 15 #include "base/message_loop/message_loop.h" |
16 #include "base/path_service.h" | 16 #include "base/path_service.h" |
17 #include "base/run_loop.h" | 17 #include "base/run_loop.h" |
| 18 #include "base/threading/sequenced_worker_pool.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
19 | 20 |
20 namespace service_manager { | 21 namespace service_manager { |
21 namespace { | 22 namespace { |
22 | 23 |
23 const char kTestServiceName[] = "host_test_service"; | 24 const char kTestServiceName[] = "host_test_service"; |
24 | 25 |
25 #if defined(OS_WIN) | 26 #if defined(OS_WIN) |
26 const base::FilePath::CharType kServiceExtension[] = | 27 const base::FilePath::CharType kServiceExtension[] = |
27 FILE_PATH_LITERAL(".service.exe"); | 28 FILE_PATH_LITERAL(".service.exe"); |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 run_loop.Run(); | 92 run_loop.Run(); |
92 | 93 |
93 launcher.Join(); | 94 launcher.Join(); |
94 blocking_pool->Shutdown(); | 95 blocking_pool->Shutdown(); |
95 | 96 |
96 EXPECT_EQ(1u, service_process_launcher_delegate.get_and_clear_adjust_count()); | 97 EXPECT_EQ(1u, service_process_launcher_delegate.get_and_clear_adjust_count()); |
97 } | 98 } |
98 | 99 |
99 } // namespace | 100 } // namespace |
100 } // namespace service_manager | 101 } // namespace service_manager |
OLD | NEW |