OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <fstream> | 5 #include <fstream> |
6 #include <string> | 6 #include <string> |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/environment.h" | 10 #include "base/environment.h" |
11 #include "base/file_path.h" | 11 #include "base/file_path.h" |
12 #include "base/file_util.h" | 12 #include "base/file_util.h" |
13 #include "base/file_version_info.h" | 13 #include "base/file_version_info.h" |
14 #include "base/i18n/time_formatting.h" | 14 #include "base/i18n/time_formatting.h" |
15 #include "base/logging.h" | 15 #include "base/logging.h" |
16 #include "base/path_service.h" | 16 #include "base/path_service.h" |
17 #include "base/rand_util.h" | 17 #include "base/rand_util.h" |
18 #include "base/string_number_conversions.h" | 18 #include "base/string_number_conversions.h" |
19 #include "base/string_split.h" | 19 #include "base/string_split.h" |
20 #include "base/string_util.h" | 20 #include "base/string_util.h" |
21 #include "base/threading/platform_thread.h" | 21 #include "base/threading/platform_thread.h" |
22 #include "base/time.h" | 22 #include "base/time.h" |
23 #include "chrome/app/chrome_command_ids.h" | 23 #include "chrome/app/chrome_command_ids.h" |
24 #include "chrome/browser/browser_process.h" | 24 #include "chrome/browser/browser_process.h" |
25 #include "chrome/browser/character_encoding.h" | 25 #include "chrome/browser/character_encoding.h" |
26 #include "chrome/browser/ui/view_ids.h" | 26 #include "chrome/browser/ui/view_ids.h" |
27 #include "chrome/common/chrome_paths.h" | 27 #include "chrome/common/chrome_paths.h" |
28 #include "chrome/common/chrome_version_info.h" | 28 #include "chrome/common/chrome_version_info.h" |
29 #include "chrome/common/env_vars.h" | 29 #include "chrome/common/env_vars.h" |
30 #include "chrome/common/libxml_utils.h" | |
31 #include "chrome/common/url_constants.h" | 30 #include "chrome/common/url_constants.h" |
32 #include "chrome/test/automation/automation_proxy.h" | 31 #include "chrome/test/automation/automation_proxy.h" |
33 #include "chrome/test/automation/browser_proxy.h" | 32 #include "chrome/test/automation/browser_proxy.h" |
34 #include "chrome/test/automation/tab_proxy.h" | 33 #include "chrome/test/automation/tab_proxy.h" |
35 #include "chrome/test/automation/window_proxy.h" | 34 #include "chrome/test/automation/window_proxy.h" |
36 #include "chrome/test/reliability/automated_ui_tests.h" | 35 #include "chrome/test/reliability/automated_ui_tests.h" |
37 #include "chrome/test/ui/ui_test.h" | 36 #include "chrome/test/ui/ui_test.h" |
38 #include "googleurl/src/gurl.h" | 37 #include "googleurl/src/gurl.h" |
39 #include "ui/base/keycodes/keyboard_codes.h" | 38 #include "ui/base/keycodes/keyboard_codes.h" |
40 | 39 |
(...skipping 784 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
825 } | 824 } |
826 } | 825 } |
827 | 826 |
828 TEST_F(AutomatedUITest, TheOneAndOnlyTest) { | 827 TEST_F(AutomatedUITest, TheOneAndOnlyTest) { |
829 const CommandLine& parsed_command_line = *CommandLine::ForCurrentProcess(); | 828 const CommandLine& parsed_command_line = *CommandLine::ForCurrentProcess(); |
830 if (parsed_command_line.HasSwitch(kReproSwitch)) | 829 if (parsed_command_line.HasSwitch(kReproSwitch)) |
831 RunReproduction(); | 830 RunReproduction(); |
832 else | 831 else |
833 RunAutomatedUITest(); | 832 RunAutomatedUITest(); |
834 } | 833 } |
OLD | NEW |