| 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 "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 // Given a path to a PEImage in |original_file|, copy that file to | 36 // Given a path to a PEImage in |original_file|, copy that file to |
| 37 // |target_file|, modifying the version of the copy according to |direction|. | 37 // |target_file|, modifying the version of the copy according to |direction|. |
| 38 // Any previous file at |target_file| is clobbered. On success, returns the | 38 // Any previous file at |target_file| is clobbered. On success, returns the |
| 39 // version of the generated file. Otherwise, returns an empty string. Note that | 39 // version of the generated file. Otherwise, returns an empty string. Note that |
| 40 // |target_file| may still be mutated on failure. | 40 // |target_file| may still be mutated on failure. |
| 41 base::string16 GenerateAlternatePEFileVersion( | 41 base::string16 GenerateAlternatePEFileVersion( |
| 42 const base::FilePath& original_file, | 42 const base::FilePath& original_file, |
| 43 const base::FilePath& target_file, | 43 const base::FilePath& target_file, |
| 44 Direction direction); | 44 Direction direction); |
| 45 | 45 |
| 46 // Given a path to a PEImage in |original_file|, copy that file to | |
| 47 // |target_file|, modifying the version of the copy according to |version|. | |
| 48 // Any previous file at |target_file| is clobbered. Returns true on success. | |
| 49 // Note that |target_file| may still be mutated on failure. | |
| 50 bool GenerateSpecificPEFileVersion(const base::FilePath& original_file, | |
| 51 const base::FilePath& target_file, | |
| 52 const base::Version& version); | |
| 53 | |
| 54 } // namespace upgrade_test | 46 } // namespace upgrade_test |
| 55 | 47 |
| 56 #endif // CHROME_INSTALLER_TEST_ALTERNATE_VERSION_GENERATOR_H_ | 48 #endif // CHROME_INSTALLER_TEST_ALTERNATE_VERSION_GENERATOR_H_ |
| OLD | NEW |