| 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 <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" | |
| 12 #include "base/files/file_enumerator.h" | 11 #include "base/files/file_enumerator.h" |
| 13 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
| 13 #include "base/files/file_util.h" |
| 14 #include "base/files/scoped_temp_dir.h" | 14 #include "base/files/scoped_temp_dir.h" |
| 15 #include "base/path_service.h" | 15 #include "base/path_service.h" |
| 16 #include "base/strings/string_util.h" | 16 #include "base/strings/string_util.h" |
| 17 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
| 18 #include "base/test/test_reg_util_win.h" | 18 #include "base/test/test_reg_util_win.h" |
| 19 #include "base/version.h" | 19 #include "base/version.h" |
| 20 #include "base/win/registry.h" | 20 #include "base/win/registry.h" |
| 21 #include "base/win/scoped_handle.h" | 21 #include "base/win/scoped_handle.h" |
| 22 #include "chrome/common/chrome_constants.h" | 22 #include "chrome/common/chrome_constants.h" |
| 23 #include "chrome/installer/test/alternate_version_generator.h" | 23 #include "chrome/installer/test/alternate_version_generator.h" |
| (...skipping 777 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 801 // Critical update newer than the new version. | 801 // Critical update newer than the new version. |
| 802 EXPECT_FALSE( | 802 EXPECT_FALSE( |
| 803 installer_state.DetermineCriticalVersion(NULL, *pv_version_).IsValid()); | 803 installer_state.DetermineCriticalVersion(NULL, *pv_version_).IsValid()); |
| 804 EXPECT_FALSE( | 804 EXPECT_FALSE( |
| 805 installer_state.DetermineCriticalVersion(opv_version_, *pv_version_) | 805 installer_state.DetermineCriticalVersion(opv_version_, *pv_version_) |
| 806 .IsValid()); | 806 .IsValid()); |
| 807 EXPECT_FALSE( | 807 EXPECT_FALSE( |
| 808 installer_state.DetermineCriticalVersion(pv_version_, *pv_version_) | 808 installer_state.DetermineCriticalVersion(pv_version_, *pv_version_) |
| 809 .IsValid()); | 809 .IsValid()); |
| 810 } | 810 } |
| OLD | NEW |