OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "base/process_util.h" | 5 #include "base/process_util.h" |
6 #include "base/test/test_timeouts.h" | 6 #include "base/test/test_timeouts.h" |
7 #include "chrome/browser/browser.h" | |
8 #include "chrome/browser/service/service_process_control.h" | 7 #include "chrome/browser/service/service_process_control.h" |
9 #include "chrome/browser/service/service_process_control_manager.h" | 8 #include "chrome/browser/service/service_process_control_manager.h" |
| 9 #include "chrome/browser/ui/browser.h" |
10 #include "chrome/common/chrome_version_info.h" | 10 #include "chrome/common/chrome_version_info.h" |
11 #include "chrome/common/service_process_util.h" | 11 #include "chrome/common/service_process_util.h" |
12 #include "chrome/test/in_process_browser_test.h" | 12 #include "chrome/test/in_process_browser_test.h" |
13 #include "chrome/test/ui_test_utils.h" | 13 #include "chrome/test/ui_test_utils.h" |
14 | 14 |
15 class ServiceProcessControlBrowserTest | 15 class ServiceProcessControlBrowserTest |
16 : public InProcessBrowserTest, | 16 : public InProcessBrowserTest, |
17 public ServiceProcessControl::MessageHandler { | 17 public ServiceProcessControl::MessageHandler { |
18 public: | 18 public: |
19 ServiceProcessControlBrowserTest() | 19 ServiceProcessControlBrowserTest() |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 IN_PROC_BROWSER_TEST_F(ServiceProcessControlBrowserTest, CheckPid) { | 198 IN_PROC_BROWSER_TEST_F(ServiceProcessControlBrowserTest, CheckPid) { |
199 EXPECT_EQ(0, GetServiceProcessPid()); | 199 EXPECT_EQ(0, GetServiceProcessPid()); |
200 // Launch the service process. | 200 // Launch the service process. |
201 LaunchServiceProcessControl(); | 201 LaunchServiceProcessControl(); |
202 EXPECT_NE(static_cast<base::ProcessId>(0), GetServiceProcessPid()); | 202 EXPECT_NE(static_cast<base::ProcessId>(0), GetServiceProcessPid()); |
203 } | 203 } |
204 | 204 |
205 #endif | 205 #endif |
206 | 206 |
207 DISABLE_RUNNABLE_METHOD_REFCOUNT(ServiceProcessControlBrowserTest); | 207 DISABLE_RUNNABLE_METHOD_REFCOUNT(ServiceProcessControlBrowserTest); |
OLD | NEW |