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" | |
19 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
20 | 19 |
21 namespace service_manager { | 20 namespace service_manager { |
22 namespace { | 21 namespace { |
23 | 22 |
24 const char kTestServiceName[] = "host_test_service"; | 23 const char kTestServiceName[] = "host_test_service"; |
25 | 24 |
26 #if defined(OS_WIN) | 25 #if defined(OS_WIN) |
27 const base::FilePath::CharType kServiceExtension[] = | 26 const base::FilePath::CharType kServiceExtension[] = |
28 FILE_PATH_LITERAL(".service.exe"); | 27 FILE_PATH_LITERAL(".service.exe"); |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 run_loop.Run(); | 91 run_loop.Run(); |
93 | 92 |
94 launcher.Join(); | 93 launcher.Join(); |
95 blocking_pool->Shutdown(); | 94 blocking_pool->Shutdown(); |
96 | 95 |
97 EXPECT_EQ(1u, service_process_launcher_delegate.get_and_clear_adjust_count()); | 96 EXPECT_EQ(1u, service_process_launcher_delegate.get_and_clear_adjust_count()); |
98 } | 97 } |
99 | 98 |
100 } // namespace | 99 } // namespace |
101 } // namespace service_manager | 100 } // namespace service_manager |
OLD | NEW |