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_main.cc

Issue 1548153002: Switch to standard integer types in chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
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>
9
8 #include <cstdio> 10 #include <cstdio>
9 #include <cstdlib> 11 #include <cstdlib>
10 12
11 #include "base/at_exit.h" 13 #include "base/at_exit.h"
12 #include "base/basictypes.h"
13 #include "base/command_line.h" 14 #include "base/command_line.h"
14 #include "base/files/file_path.h" 15 #include "base/files/file_path.h"
15 #include "base/files/file_util.h" 16 #include "base/files/file_util.h"
16 #include "base/logging.h" 17 #include "base/logging.h"
18 #include "base/macros.h"
17 #include "base/path_service.h" 19 #include "base/path_service.h"
18 #include "chrome/installer/test/alternate_version_generator.h" 20 #include "chrome/installer/test/alternate_version_generator.h"
19 21
20 namespace { 22 namespace {
21 23
22 const wchar_t kDefaultMiniInstallerFile[] = L"mini_installer.exe"; 24 const wchar_t kDefaultMiniInstallerFile[] = L"mini_installer.exe";
23 const wchar_t kDefaultOutPath[] = L"mini_installer_new.exe"; 25 const wchar_t kDefaultOutPath[] = L"mini_installer_new.exe";
24 26
25 namespace switches { 27 namespace switches {
26 28
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 if (upgrade_test::GenerateAlternateVersion(mini_installer, out, direction, 163 if (upgrade_test::GenerateAlternateVersion(mini_installer, out, direction,
162 &original_version, &new_version)) { 164 &original_version, &new_version)) {
163 fwprintf(stdout, L"Generated version %s from version %s\n", 165 fwprintf(stdout, L"Generated version %s from version %s\n",
164 new_version.c_str(), original_version.c_str()); 166 new_version.c_str(), original_version.c_str());
165 return EXIT_SUCCESS; 167 return EXIT_SUCCESS;
166 } 168 }
167 169
168 DumpUsage(*cmd_line, errors::GENERATION_FAILED, mini_installer.value()); 170 DumpUsage(*cmd_line, errors::GENERATION_FAILED, mini_installer.value());
169 return EXIT_FAILURE; 171 return EXIT_FAILURE;
170 } 172 }
OLDNEW
« no previous file with comments | « chrome/installer/test/alternate_version_generator.cc ('k') | chrome/installer/test/pe_image_resources.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698