OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 <windows.h> | 5 #include <windows.h> |
6 | 6 |
7 #include <fstream> | 7 #include <fstream> |
8 #include <iostream> | |
9 | 8 |
10 #include "base/base_paths.h" | 9 #include "base/base_paths.h" |
11 #include "base/file_util.h" | 10 #include "base/file_util.h" |
12 #include "base/logging.h" | 11 #include "base/logging.h" |
13 #include "base/path_service.h" | 12 #include "base/path_service.h" |
14 #include "base/process_util.h" | 13 #include "base/process_util.h" |
15 #include "base/scoped_ptr.h" | 14 #include "base/scoped_ptr.h" |
16 #include "base/string_util.h" | 15 #include "base/string_util.h" |
17 #include "chrome/installer/util/delete_tree_work_item.h" | 16 #include "chrome/installer/util/delete_tree_work_item.h" |
18 #include "chrome/installer/util/work_item.h" | 17 #include "chrome/installer/util/work_item.h" |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 | 212 |
214 // verify everything is still there. | 213 // verify everything is still there. |
215 EXPECT_TRUE(file_util::PathExists(key_path)); | 214 EXPECT_TRUE(file_util::PathExists(key_path)); |
216 EXPECT_TRUE(file_util::PathExists(file_name_delete_1)); | 215 EXPECT_TRUE(file_util::PathExists(file_name_delete_1)); |
217 EXPECT_TRUE(file_util::PathExists(file_name_delete_2)); | 216 EXPECT_TRUE(file_util::PathExists(file_name_delete_2)); |
218 | 217 |
219 TerminateProcess(pi.hProcess, 0); | 218 TerminateProcess(pi.hProcess, 0); |
220 // make sure the handle is closed. | 219 // make sure the handle is closed. |
221 WaitForSingleObject(pi.hProcess, INFINITE); | 220 WaitForSingleObject(pi.hProcess, INFINITE); |
222 } | 221 } |
OLD | NEW |