| 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 // This file exposes the public interface to the mini_installer re-versioner. | 5 // This file exposes the public interface to the mini_installer re-versioner. |
| 6 | 6 |
| 7 #ifndef CHROME_INSTALLER_TEST_ALTERNATE_VERSION_GENERATOR_H_ | 7 #ifndef CHROME_INSTALLER_TEST_ALTERNATE_VERSION_GENERATOR_H_ |
| 8 #define CHROME_INSTALLER_TEST_ALTERNATE_VERSION_GENERATOR_H_ | 8 #define CHROME_INSTALLER_TEST_ALTERNATE_VERSION_GENERATOR_H_ |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 class Version; | |
| 13 | |
| 14 namespace base { | 12 namespace base { |
| 15 class FilePath; | 13 class FilePath; |
| 14 class Version; |
| 16 } | 15 } |
| 17 | 16 |
| 18 namespace upgrade_test { | 17 namespace upgrade_test { |
| 19 | 18 |
| 20 enum Direction { | 19 enum Direction { |
| 21 PREVIOUS_VERSION, | 20 PREVIOUS_VERSION, |
| 22 NEXT_VERSION | 21 NEXT_VERSION |
| 23 }; | 22 }; |
| 24 | 23 |
| 25 // Generates an alternate mini_installer.exe using the one indicated by | 24 // Generates an alternate mini_installer.exe using the one indicated by |
| (...skipping 15 matching lines...) Expand all Loading... |
| 41 bool GenerateAlternatePEFileVersion(const base::FilePath& original_file, | 40 bool GenerateAlternatePEFileVersion(const base::FilePath& original_file, |
| 42 const base::FilePath& target_file, | 41 const base::FilePath& target_file, |
| 43 Direction direction); | 42 Direction direction); |
| 44 | 43 |
| 45 // Given a path to a PEImage in |original_file|, copy that file to | 44 // Given a path to a PEImage in |original_file|, copy that file to |
| 46 // |target_file|, modifying the version of the copy according to |version|. | 45 // |target_file|, modifying the version of the copy according to |version|. |
| 47 // Any previous file at |target_file| is clobbered. Returns true on success. | 46 // Any previous file at |target_file| is clobbered. Returns true on success. |
| 48 // Note that |target_file| may still be mutated on failure. | 47 // Note that |target_file| may still be mutated on failure. |
| 49 bool GenerateSpecificPEFileVersion(const base::FilePath& original_file, | 48 bool GenerateSpecificPEFileVersion(const base::FilePath& original_file, |
| 50 const base::FilePath& target_file, | 49 const base::FilePath& target_file, |
| 51 const Version& version); | 50 const base::Version& version); |
| 52 | 51 |
| 53 } // namespace upgrade_test | 52 } // namespace upgrade_test |
| 54 | 53 |
| 55 #endif // CHROME_INSTALLER_TEST_ALTERNATE_VERSION_GENERATOR_H_ | 54 #endif // CHROME_INSTALLER_TEST_ALTERNATE_VERSION_GENERATOR_H_ |
| OLD | NEW |