| OLD | NEW |
| 1 // Copyright (c) 2010 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 #include <fstream> | 5 #include <fstream> |
| 6 #include <string> | 6 #include <string> |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "app/keyboard_codes.h" | 9 #include "app/keyboard_codes.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 11 #include "base/environment.h" | 11 #include "base/environment.h" |
| 12 #include "base/file_util.h" | 12 #include "base/file_util.h" |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/path_service.h" | 14 #include "base/path_service.h" |
| 15 #include "base/rand_util.h" | 15 #include "base/rand_util.h" |
| 16 #include "base/string_number_conversions.h" | 16 #include "base/string_number_conversions.h" |
| 17 #include "base/string_split.h" | 17 #include "base/string_split.h" |
| 18 #include "base/string_util.h" | 18 #include "base/string_util.h" |
| 19 #include "base/time.h" | 19 #include "base/time.h" |
| 20 #include "chrome/app/chrome_command_ids.h" | 20 #include "chrome/app/chrome_command_ids.h" |
| 21 #include "chrome/browser/browser_process.h" | 21 #include "chrome/browser/browser_process.h" |
| 22 #include "chrome/browser/character_encoding.h" | 22 #include "chrome/browser/character_encoding.h" |
| 23 #include "chrome/browser/view_ids.h" | 23 #include "chrome/browser/ui/view_ids.h" |
| 24 #include "chrome/common/chrome_paths.h" | 24 #include "chrome/common/chrome_paths.h" |
| 25 #include "chrome/common/env_vars.h" | 25 #include "chrome/common/env_vars.h" |
| 26 #include "chrome/common/libxml_utils.h" | 26 #include "chrome/common/libxml_utils.h" |
| 27 #include "chrome/common/url_constants.h" | 27 #include "chrome/common/url_constants.h" |
| 28 #include "chrome/test/automated_ui_tests/automated_ui_tests.h" | 28 #include "chrome/test/automated_ui_tests/automated_ui_tests.h" |
| 29 #include "chrome/test/automation/browser_proxy.h" | 29 #include "chrome/test/automation/browser_proxy.h" |
| 30 #include "chrome/test/automation/tab_proxy.h" | 30 #include "chrome/test/automation/tab_proxy.h" |
| 31 #include "chrome/test/automation/window_proxy.h" | 31 #include "chrome/test/automation/window_proxy.h" |
| 32 #include "chrome/test/ui/ui_test.h" | 32 #include "chrome/test/ui/ui_test.h" |
| 33 #include "googleurl/src/gurl.h" | 33 #include "googleurl/src/gurl.h" |
| (...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 744 } | 744 } |
| 745 } | 745 } |
| 746 | 746 |
| 747 TEST_F(AutomatedUITest, TheOneAndOnlyTest) { | 747 TEST_F(AutomatedUITest, TheOneAndOnlyTest) { |
| 748 const CommandLine& parsed_command_line = *CommandLine::ForCurrentProcess(); | 748 const CommandLine& parsed_command_line = *CommandLine::ForCurrentProcess(); |
| 749 if (parsed_command_line.HasSwitch(kReproSwitch)) | 749 if (parsed_command_line.HasSwitch(kReproSwitch)) |
| 750 RunReproduction(); | 750 RunReproduction(); |
| 751 else | 751 else |
| 752 RunAutomatedUITest(); | 752 RunAutomatedUITest(); |
| 753 } | 753 } |
| OLD | NEW |