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

Side by Side Diff: chrome/test/browser/browser_test_runner.cc

Issue 150177: Make browser tests skip disabled tests (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 5 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
« no previous file with comments | « no previous file | 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 (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "chrome/test/browser/browser_test_runner.h" 5 #include "chrome/test/browser/browser_test_runner.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 iter != lines.end(); ++iter) { 50 iter != lines.end(); ++iter) {
51 std::string line = *iter; 51 std::string line = *iter;
52 if (line.empty()) 52 if (line.empty())
53 continue; // Just ignore empty lines if any. 53 continue; // Just ignore empty lines if any.
54 54
55 if (line[line.size() - 1] == '.') { 55 if (line[line.size() - 1] == '.') {
56 // This is a new test case. 56 // This is a new test case.
57 test_case = line; 57 test_case = line;
58 continue; 58 continue;
59 } 59 }
60
61 if (line.find("DISABLED") != std::string::npos)
62 continue; // Skip disabled tests.
63
60 // We are dealing with a test. 64 // We are dealing with a test.
61 test_list->push_back(test_case + line); 65 test_list->push_back(test_case + line);
62 } 66 }
63 return true; 67 return true;
64 } 68 }
65 69
66 } // namespace 70 } // namespace
67 71
68 namespace browser_tests { 72 namespace browser_tests {
69 73
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 printf("Failing tests:\n"); 121 printf("Failing tests:\n");
118 for (std::vector<std::string>::const_iterator iter = failed_tests.begin(); 122 for (std::vector<std::string>::const_iterator iter = failed_tests.begin();
119 iter != failed_tests.end(); ++iter) { 123 iter != failed_tests.end(); ++iter) {
120 printf("%s\n", iter->c_str()); 124 printf("%s\n", iter->c_str());
121 } 125 }
122 126
123 return false; 127 return false;
124 } 128 }
125 129
126 } // namespace 130 } // namespace
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698