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/browser/service/service_process_control.h" | 5 #include "chrome/browser/service_process/service_process_control.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
11 #include "base/process/kill.h" | 11 #include "base/process/kill.h" |
12 #include "base/process/process_handle.h" | 12 #include "base/process/process_handle.h" |
13 #include "base/process/process_iterator.h" | 13 #include "base/process/process_iterator.h" |
14 #include "base/test/test_timeouts.h" | 14 #include "base/test/test_timeouts.h" |
15 #include "chrome/browser/ui/browser.h" | 15 #include "chrome/browser/ui/browser.h" |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 // Callback should not be called during GetHistograms call. | 285 // Callback should not be called during GetHistograms call. |
286 EXPECT_CALL(*this, MockHistogramsCallback()).Times(0); | 286 EXPECT_CALL(*this, MockHistogramsCallback()).Times(0); |
287 // Wait for real callback by providing large timeout value. | 287 // Wait for real callback by providing large timeout value. |
288 EXPECT_TRUE(ServiceProcessControl::GetInstance()->GetHistograms( | 288 EXPECT_TRUE(ServiceProcessControl::GetInstance()->GetHistograms( |
289 base::Bind(&ServiceProcessControlBrowserTest::HistogramsCallback, | 289 base::Bind(&ServiceProcessControlBrowserTest::HistogramsCallback, |
290 base::Unretained(this)), | 290 base::Unretained(this)), |
291 base::TimeDelta::FromHours(1))); | 291 base::TimeDelta::FromHours(1))); |
292 EXPECT_CALL(*this, MockHistogramsCallback()).Times(1); | 292 EXPECT_CALL(*this, MockHistogramsCallback()).Times(1); |
293 content::RunMessageLoop(); | 293 content::RunMessageLoop(); |
294 } | 294 } |
OLD | NEW |