| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |