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" |
11 | 11 |
12 namespace base { | 12 namespace base { |
13 class FilePath; | 13 class FilePath; |
14 class Version; | |
15 } | 14 } |
16 | 15 |
17 namespace upgrade_test { | 16 namespace upgrade_test { |
18 | 17 |
19 enum Direction { | 18 enum Direction { |
20 PREVIOUS_VERSION, | 19 PREVIOUS_VERSION, |
21 NEXT_VERSION | 20 NEXT_VERSION |
22 }; | 21 }; |
23 | 22 |
24 // Generates an alternate mini_installer.exe using the one indicated by | 23 // Generates an alternate mini_installer.exe using the one indicated by |
(...skipping 14 matching lines...) Expand all Loading... |
39 // version of the generated file. Otherwise, returns an empty string. Note that | 38 // version of the generated file. Otherwise, returns an empty string. Note that |
40 // |target_file| may still be mutated on failure. | 39 // |target_file| may still be mutated on failure. |
41 base::string16 GenerateAlternatePEFileVersion( | 40 base::string16 GenerateAlternatePEFileVersion( |
42 const base::FilePath& original_file, | 41 const base::FilePath& original_file, |
43 const base::FilePath& target_file, | 42 const base::FilePath& target_file, |
44 Direction direction); | 43 Direction direction); |
45 | 44 |
46 } // namespace upgrade_test | 45 } // namespace upgrade_test |
47 | 46 |
48 #endif // CHROME_INSTALLER_TEST_ALTERNATE_VERSION_GENERATOR_H_ | 47 #endif // CHROME_INSTALLER_TEST_ALTERNATE_VERSION_GENERATOR_H_ |
OLD | NEW |