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

Side by Side Diff: chrome_elf/run_all_unittests.cc

Issue 2760853002: Remove use of PRODUCT_STRING_PATH in chrome_elf. (Closed)
Patch Set: now Created 3 years, 9 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_elf/chrome_elf_util_unittest.cc ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #include "base/bind.h" 5 #include "base/bind.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "base/test/launcher/unit_test_launcher.h" 7 #include "base/test/launcher/unit_test_launcher.h"
8 #include "base/test/test_suite.h" 8 #include "base/test/test_suite.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "chrome/install_static/test/scoped_install_details.h"
10 11
11 int main(int argc, char** argv) { 12 int main(int argc, char** argv) {
12 // Ensure that the CommandLine instance honors the command line passed in 13 // Ensure that the CommandLine instance honors the command line passed in
13 // instead of the default behavior on Windows which is to use the shell32 14 // instead of the default behavior on Windows which is to use the shell32
14 // CommandLineToArgvW API. The chrome_elf_unittests test suite should not 15 // CommandLineToArgvW API. The chrome_elf_unittests test suite should not
15 // depend on user32 directly or indirectly (For the curious shell32 depends 16 // depend on user32 directly or indirectly (For the curious shell32 depends
16 // on user32) 17 // on user32)
17 base::CommandLine::InitUsingArgvForTesting(argc, argv); 18 base::CommandLine::InitUsingArgvForTesting(argc, argv);
19
20 install_static::ScopedInstallDetails scoped_install_details;
21
18 base::TestSuite test_suite(argc, argv); 22 base::TestSuite test_suite(argc, argv);
19 int ret = base::LaunchUnitTests( 23 int ret = base::LaunchUnitTests(
20 argc, argv, 24 argc, argv,
21 base::Bind(&base::TestSuite::Run, base::Unretained(&test_suite))); 25 base::Bind(&base::TestSuite::Run, base::Unretained(&test_suite)));
22 return ret; 26 return ret;
23 } 27 }
OLDNEW
« no previous file with comments | « chrome_elf/chrome_elf_util_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698