OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #include "base/bind.h" | |
6 #include "base/command_line.h" | |
7 #include "base/test/launcher/unit_test_launcher.h" | |
8 #include "base/test/test_suite.h" | |
9 #include "build/build_config.h" | |
10 | |
11 int main(int argc, char** argv) { | |
12 // 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 // CommandLineToArgV API. The chrome_elf_unittests test suite should not | |
scottmg
2016/06/18 17:36:57
CommandLineToArgvW
ananta
2016/06/20 19:08:03
Done.
| |
15 // depend on user32 directly or indirectly (For the curious shell32 depends | |
16 // on user32) | |
17 base::CommandLine::set_honor_command_line_args_for_testing(true); | |
18 int ret = base::LaunchUnitTests( | |
19 argc, argv, | |
20 base::Bind(&base::TestSuite::Run, base::Unretained(&test_suite))); | |
robertshield
2016/06/20 16:59:54
test_suite is undefined here
ananta
2016/06/20 19:08:03
Done.
| |
21 base::CommandLine::set_honor_command_line_args_for_testing(false); | |
22 return ret; | |
23 } | |
OLD | NEW |