| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-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 <fstream> | 5 #include <fstream> |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
| 11 #include "base/rand_util.h" | 11 #include "base/rand_util.h" |
| 12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
| 13 #include "base/sys_info.h" | 13 #include "base/sys_info.h" |
| 14 #include "base/time.h" | 14 #include "base/time.h" |
| 15 #include "chrome/app/chrome_dll_resource.h" | 15 #include "chrome/app/chrome_dll_resource.h" |
| 16 #include "chrome/browser/browser_process.h" | 16 #include "chrome/browser/browser_process.h" |
| 17 #include "chrome/browser/character_encoding.h" | 17 #include "chrome/browser/character_encoding.h" |
| 18 #include "chrome/browser/view_ids.h" | 18 #include "chrome/browser/view_ids.h" |
| 19 #include "chrome/common/chrome_paths.h" | 19 #include "chrome/common/chrome_paths.h" |
| 20 #include "chrome/common/env_vars.h" | 20 #include "chrome/common/env_vars.h" |
| 21 #include "chrome/common/libxml_utils.h" | 21 #include "chrome/common/libxml_utils.h" |
| 22 #include "chrome/common/win_util.h" | |
| 23 #include "chrome/test/automated_ui_tests/automated_ui_tests.h" | 22 #include "chrome/test/automated_ui_tests/automated_ui_tests.h" |
| 24 #include "chrome/test/automation/browser_proxy.h" | 23 #include "chrome/test/automation/browser_proxy.h" |
| 25 #include "chrome/test/automation/tab_proxy.h" | 24 #include "chrome/test/automation/tab_proxy.h" |
| 26 #include "chrome/test/automation/window_proxy.h" | 25 #include "chrome/test/automation/window_proxy.h" |
| 27 #include "chrome/test/ui/ui_test.h" | 26 #include "chrome/test/ui/ui_test.h" |
| 28 #include "googleurl/src/gurl.h" | 27 #include "googleurl/src/gurl.h" |
| 29 #include "views/view.h" | 28 #include "views/view.h" |
| 30 | 29 |
| 31 namespace { | 30 namespace { |
| 32 | 31 |
| (...skipping 864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 897 } | 896 } |
| 898 } | 897 } |
| 899 | 898 |
| 900 TEST_F(AutomatedUITest, TheOneAndOnlyTest) { | 899 TEST_F(AutomatedUITest, TheOneAndOnlyTest) { |
| 901 const CommandLine& parsed_command_line = *CommandLine::ForCurrentProcess(); | 900 const CommandLine& parsed_command_line = *CommandLine::ForCurrentProcess(); |
| 902 if (parsed_command_line.HasSwitch(kReproSwitch)) | 901 if (parsed_command_line.HasSwitch(kReproSwitch)) |
| 903 RunReproduction(); | 902 RunReproduction(); |
| 904 else | 903 else |
| 905 RunAutomatedUITest(); | 904 RunAutomatedUITest(); |
| 906 } | 905 } |
| OLD | NEW |