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

Side by Side Diff: base/test/launcher/unit_test_launcher_ios.cc

Issue 761903003: Update from https://crrev.com/306655 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 | « base/test/launcher/unit_test_launcher.cc ('k') | base/test/scoped_path_override.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/test/launcher/unit_test_launcher.h" 5 #include "base/test/launcher/unit_test_launcher.h"
6 6
7 #include "base/command_line.h"
8 #include "base/files/file_path.h"
9 #include "base/logging.h"
10 #include "base/test/gtest_util.h"
11 #include "base/test/test_switches.h"
12
7 namespace base { 13 namespace base {
8 14
9 int LaunchUnitTests(int argc, 15 int LaunchUnitTests(int argc,
10 char** argv, 16 char** argv,
11 const RunTestSuiteCallback& run_test_suite) { 17 const RunTestSuiteCallback& run_test_suite) {
12 // Stub implementation - iOS doesn't support features we need for 18 CHECK(CommandLine::InitializedForCurrentProcess() ||
13 // the full test launcher (e.g. process_util). 19 CommandLine::Init(argc, argv));
20 const CommandLine* command_line = CommandLine::ForCurrentProcess();
21 if (command_line->HasSwitch(switches::kTestLauncherListTests)) {
22 FilePath list_path(command_line->GetSwitchValuePath(
23 switches::kTestLauncherListTests));
24 if (WriteCompiledInTestsToFile(list_path)) {
25 return 0;
26 } else {
27 LOG(ERROR) << "Failed to write list of tests.";
28 return 1;
29 }
30 }
31
14 return run_test_suite.Run(); 32 return run_test_suite.Run();
15 } 33 }
16 34
17 } // namespace base 35 } // namespace base
OLDNEW
« no previous file with comments | « base/test/launcher/unit_test_launcher.cc ('k') | base/test/scoped_path_override.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698