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

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

Issue 1430633002: Use --gtest_flagfile for --gtest_filter in unit test launcher (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 5 years, 1 month 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/test_launcher.h ('k') | base/test/launcher/unit_test_launcher.cc » ('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/test_launcher.h" 5 #include "base/test/launcher/test_launcher.h"
6 6
7 #if defined(OS_POSIX) 7 #if defined(OS_POSIX)
8 #include <fcntl.h> 8 #include <fcntl.h>
9 #endif 9 #endif
10 10
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 // a worker pool thread. 429 // a worker pool thread.
430 task_runner->PostTask(FROM_HERE, Bind(&RunCallback, callback, exit_code, 430 task_runner->PostTask(FROM_HERE, Bind(&RunCallback, callback, exit_code,
431 TimeTicks::Now() - start_time, 431 TimeTicks::Now() - start_time,
432 was_timeout, output_file_contents)); 432 was_timeout, output_file_contents));
433 } 433 }
434 434
435 } // namespace 435 } // namespace
436 436
437 const char kGTestBreakOnFailure[] = "gtest_break_on_failure"; 437 const char kGTestBreakOnFailure[] = "gtest_break_on_failure";
438 const char kGTestFilterFlag[] = "gtest_filter"; 438 const char kGTestFilterFlag[] = "gtest_filter";
439 const char kGTestFlagfileFlag[] = "gtest_flagfile";
439 const char kGTestHelpFlag[] = "gtest_help"; 440 const char kGTestHelpFlag[] = "gtest_help";
440 const char kGTestListTestsFlag[] = "gtest_list_tests"; 441 const char kGTestListTestsFlag[] = "gtest_list_tests";
441 const char kGTestRepeatFlag[] = "gtest_repeat"; 442 const char kGTestRepeatFlag[] = "gtest_repeat";
442 const char kGTestRunDisabledTestsFlag[] = "gtest_also_run_disabled_tests"; 443 const char kGTestRunDisabledTestsFlag[] = "gtest_also_run_disabled_tests";
443 const char kGTestOutputFlag[] = "gtest_output"; 444 const char kGTestOutputFlag[] = "gtest_output";
444 445
445 TestLauncherDelegate::~TestLauncherDelegate() { 446 TestLauncherDelegate::~TestLauncherDelegate() {
446 } 447 }
447 448
448 TestLauncher::TestLauncher(TestLauncherDelegate* launcher_delegate, 449 TestLauncher::TestLauncher(TestLauncherDelegate* launcher_delegate,
(...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after
1087 } 1088 }
1088 1089
1089 std::string snippet(full_output.substr(run_pos)); 1090 std::string snippet(full_output.substr(run_pos));
1090 if (end_pos != std::string::npos) 1091 if (end_pos != std::string::npos)
1091 snippet = full_output.substr(run_pos, end_pos - run_pos); 1092 snippet = full_output.substr(run_pos, end_pos - run_pos);
1092 1093
1093 return snippet; 1094 return snippet;
1094 } 1095 }
1095 1096
1096 } // namespace base 1097 } // namespace base
OLDNEW
« no previous file with comments | « base/test/launcher/test_launcher.h ('k') | base/test/launcher/unit_test_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698