OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 | 8 |
9 #include "base/base_paths.h" | 9 #include "base/base_paths.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/file_util.h" | 11 #include "base/file_util.h" |
12 #include "base/memory/scoped_temp_dir.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" |
| 14 #include "base/scoped_temp_dir.h" |
15 #include "base/string_util.h" | 15 #include "base/string_util.h" |
16 #include "base/utf_string_conversions.h" | 16 #include "base/utf_string_conversions.h" |
17 #include "base/version.h" | 17 #include "base/version.h" |
18 #include "base/win/registry.h" | 18 #include "base/win/registry.h" |
19 #include "base/win/scoped_handle.h" | 19 #include "base/win/scoped_handle.h" |
20 #include "chrome/installer/util/google_update_constants.h" | 20 #include "chrome/installer/util/google_update_constants.h" |
21 #include "chrome/installer/util/helper.h" | 21 #include "chrome/installer/util/helper.h" |
22 #include "chrome/installer/util/installation_state.h" | 22 #include "chrome/installer/util/installation_state.h" |
23 #include "chrome/installer/util/installer_state.h" | 23 #include "chrome/installer/util/installer_state.h" |
24 #include "chrome/installer/util/master_preferences.h" | 24 #include "chrome/installer/util/master_preferences.h" |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 EXPECT_EQ(launch_cmd, value); | 424 EXPECT_EQ(launch_cmd, value); |
425 EXPECT_EQ(ERROR_SUCCESS, | 425 EXPECT_EQ(ERROR_SUCCESS, |
426 key.Open(root, binaries->GetStateKey().c_str(), KEY_READ)); | 426 key.Open(root, binaries->GetStateKey().c_str(), KEY_READ)); |
427 EXPECT_EQ(ERROR_SUCCESS, | 427 EXPECT_EQ(ERROR_SUCCESS, |
428 key.ReadValue(installer::kInstallerSuccessLaunchCmdLine, &value)); | 428 key.ReadValue(installer::kInstallerSuccessLaunchCmdLine, &value)); |
429 EXPECT_EQ(launch_cmd, value); | 429 EXPECT_EQ(launch_cmd, value); |
430 key.Close(); | 430 key.Close(); |
431 } | 431 } |
432 TempRegKeyOverride::DeleteAllTempKeys(); | 432 TempRegKeyOverride::DeleteAllTempKeys(); |
433 } | 433 } |
OLD | NEW |