OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // This is a gTest-based test that runs the Selenium Core testsuite in Chrome | 5 // This is a gTest-based test that runs the Selenium Core testsuite in Chrome |
6 // using the UITest automation. The number of total and failed tests are | 6 // using the UITest automation. The number of total and failed tests are |
7 // written to stdout. | 7 // written to stdout. |
8 // | 8 // |
9 // TODO(darin): output the names of the failed tests so we can easily track | 9 // TODO(darin): output the names of the failed tests so we can easily track |
10 // deviations from the expected output. | 10 // deviations from the expected output. |
11 | 11 |
12 #include <list> | 12 #include <list> |
13 #include <set> | 13 #include <set> |
14 | 14 |
15 #include "base/file_path.h" | 15 #include "base/file_path.h" |
16 #include "base/file_util.h" | 16 #include "base/file_util.h" |
17 #include "base/path_service.h" | 17 #include "base/path_service.h" |
| 18 #include "base/string_split.h" |
18 #include "base/string_util.h" | 19 #include "base/string_util.h" |
19 #include "base/utf_string_conversions.h" | 20 #include "base/utf_string_conversions.h" |
20 #include "chrome/common/chrome_paths.h" | 21 #include "chrome/common/chrome_paths.h" |
21 #include "chrome/test/automation/tab_proxy.h" | 22 #include "chrome/test/automation/tab_proxy.h" |
22 #include "chrome/test/automation/window_proxy.h" | 23 #include "chrome/test/automation/window_proxy.h" |
23 #include "chrome/test/ui/ui_test.h" | 24 #include "chrome/test/ui/ui_test.h" |
24 #include "net/base/net_util.h" | 25 #include "net/base/net_util.h" |
25 | 26 |
26 #ifdef SIMULATE_RUN | 27 #ifdef SIMULATE_RUN |
27 #include "base/rand_util.h" | 28 #include "base/rand_util.h" |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 } | 168 } |
168 | 169 |
169 if (!new_passes_list.empty()) { | 170 if (!new_passes_list.empty()) { |
170 printf("new tests passing:\n"); | 171 printf("new tests passing:\n"); |
171 ResultsList::const_iterator it = new_passes_list.begin(); | 172 ResultsList::const_iterator it = new_passes_list.begin(); |
172 for (; it != new_passes_list.end(); ++it) | 173 for (; it != new_passes_list.end(); ++it) |
173 printf(" %s\n", it->c_str()); | 174 printf(" %s\n", it->c_str()); |
174 printf("\n"); | 175 printf("\n"); |
175 } | 176 } |
176 } | 177 } |
OLD | NEW |