Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(200)

Side by Side Diff: chrome/installer/test/alternate_version_generator.h

Issue 14099010: Move Version to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/installer/setup/setup_util.h ('k') | chrome/installer/util/install_util.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/installer/setup/setup_util.h ('k') | chrome/installer/util/install_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698