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

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

Issue 24616002: Clean up a few unused globals. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win Created 7 years, 2 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 | Annotate | Revision Log
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/test_launcher.h" 5 #include "base/test/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 546 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 557
558 } // namespace 558 } // namespace
559 559
560 const char kGTestFilterFlag[] = "gtest_filter"; 560 const char kGTestFilterFlag[] = "gtest_filter";
561 const char kGTestHelpFlag[] = "gtest_help"; 561 const char kGTestHelpFlag[] = "gtest_help";
562 const char kGTestListTestsFlag[] = "gtest_list_tests"; 562 const char kGTestListTestsFlag[] = "gtest_list_tests";
563 const char kGTestRepeatFlag[] = "gtest_repeat"; 563 const char kGTestRepeatFlag[] = "gtest_repeat";
564 const char kGTestRunDisabledTestsFlag[] = "gtest_also_run_disabled_tests"; 564 const char kGTestRunDisabledTestsFlag[] = "gtest_also_run_disabled_tests";
565 const char kGTestOutputFlag[] = "gtest_output"; 565 const char kGTestOutputFlag[] = "gtest_output";
566 566
567 const char kHelpFlag[] = "help";
568
569 TestResult::TestResult() : status(TEST_UNKNOWN) { 567 TestResult::TestResult() : status(TEST_UNKNOWN) {
570 } 568 }
571 569
572 TestLauncherDelegate::~TestLauncherDelegate() { 570 TestLauncherDelegate::~TestLauncherDelegate() {
573 } 571 }
574 572
575 void PrintTestOutputSnippetOnFailure(const TestResult& result, 573 void PrintTestOutputSnippetOnFailure(const TestResult& result,
576 const std::string& full_output) { 574 const std::string& full_output) {
577 if (result.status == TestResult::TEST_SUCCESS) 575 if (result.status == TestResult::TEST_SUCCESS)
578 return; 576 return;
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
778 cycles, 776 cycles,
779 &exit_code, 777 &exit_code,
780 true)); 778 true));
781 779
782 MessageLoop::current()->Run(); 780 MessageLoop::current()->Run();
783 781
784 return exit_code; 782 return exit_code;
785 } 783 }
786 784
787 } // namespace base 785 } // namespace base
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698