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

Side by Side Diff: chrome/installer/test/alternate_version_generator_main.cc

Issue 1902233003: Add next_version_mini_installer target. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: disable for x86/Debug/component builds Created 4 years, 7 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
« no previous file with comments | « chrome/installer/mini_installer/generate_next_version_mini_installer.py ('k') | no next file » | 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 provides a command-line interface to 5 // This file provides a command-line interface to
6 // upgrade_test::GenerateAlternateVersion(). 6 // upgrade_test::GenerateAlternateVersion().
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <cstdio> 10 #include <cstdio>
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 if (!cmd_line->HasSwitch(switches::kForce) && base::PathExists(out)) { 153 if (!cmd_line->HasSwitch(switches::kForce) && base::PathExists(out)) {
154 DumpUsage(*cmd_line, errors::OUT_FILE_EXISTS, out.value()); 154 DumpUsage(*cmd_line, errors::OUT_FILE_EXISTS, out.value());
155 return EXIT_FAILURE; 155 return EXIT_FAILURE;
156 } 156 }
157 157
158 upgrade_test::Direction direction = GetDirection(*cmd_line); 158 upgrade_test::Direction direction = GetDirection(*cmd_line);
159 159
160 std::wstring original_version; 160 std::wstring original_version;
161 std::wstring new_version; 161 std::wstring new_version;
162 162
163 if (upgrade_test::GenerateAlternateVersion(mini_installer, out, direction, 163 if (upgrade_test::GenerateAlternateVersion(
164 &original_version, &new_version)) { 164 base::MakeAbsoluteFilePath(mini_installer),
165 base::MakeAbsoluteFilePath(out), direction, &original_version,
166 &new_version)) {
165 fwprintf(stdout, L"Generated version %s from version %s\n", 167 fwprintf(stdout, L"Generated version %s from version %s\n",
166 new_version.c_str(), original_version.c_str()); 168 new_version.c_str(), original_version.c_str());
167 return EXIT_SUCCESS; 169 return EXIT_SUCCESS;
168 } 170 }
169 171
170 DumpUsage(*cmd_line, errors::GENERATION_FAILED, mini_installer.value()); 172 DumpUsage(*cmd_line, errors::GENERATION_FAILED, mini_installer.value());
171 return EXIT_FAILURE; 173 return EXIT_FAILURE;
172 } 174 }
OLDNEW
« no previous file with comments | « chrome/installer/mini_installer/generate_next_version_mini_installer.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698