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 <algorithm> |
| 6 |
5 #include "chrome/test/mini_installer_test/mini_installer_test_util.h" | 7 #include "chrome/test/mini_installer_test/mini_installer_test_util.h" |
6 | 8 |
7 #include "base/file_util.h" | 9 #include "base/file_util.h" |
8 #include "base/path_service.h" | 10 #include "base/path_service.h" |
9 #include "base/process_util.h" | 11 #include "base/process_util.h" |
10 #include "base/string_util.h" | 12 #include "base/string_util.h" |
11 #include "base/test/test_timeouts.h" | 13 #include "base/test/test_timeouts.h" |
12 #include "base/threading/platform_thread.h" | 14 #include "base/threading/platform_thread.h" |
13 #include "base/time.h" | 15 #include "base/time.h" |
14 #include "base/utf_string_conversions.h" | 16 #include "base/utf_string_conversions.h" |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 } | 302 } |
301 return true; | 303 return true; |
302 } | 304 } |
303 | 305 |
304 bool MiniInstallerTestUtil::VerifyProcessHandleClosed( | 306 bool MiniInstallerTestUtil::VerifyProcessHandleClosed( |
305 base::ProcessHandle handle) { | 307 base::ProcessHandle handle) { |
306 DWORD result = WaitForSingleObject(handle, | 308 DWORD result = WaitForSingleObject(handle, |
307 TestTimeouts::large_test_timeout_ms()); | 309 TestTimeouts::large_test_timeout_ms()); |
308 return result == WAIT_OBJECT_0; | 310 return result == WAIT_OBJECT_0; |
309 } | 311 } |
OLD | NEW |