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 "chrome/test/ui/ui_test.h" | 5 #include "chrome/test/ui/ui_test.h" |
6 | 6 |
7 #if defined(OS_POSIX) | 7 #if defined(OS_POSIX) |
8 #include <signal.h> | 8 #include <signal.h> |
9 #include <sys/types.h> | 9 #include <sys/types.h> |
10 #endif | 10 #endif |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "base/process_util.h" | 23 #include "base/process_util.h" |
24 #include "base/scoped_ptr.h" | 24 #include "base/scoped_ptr.h" |
25 #include "base/scoped_temp_dir.h" | 25 #include "base/scoped_temp_dir.h" |
26 #include "base/string_number_conversions.h" | 26 #include "base/string_number_conversions.h" |
27 #include "base/string_split.h" | 27 #include "base/string_split.h" |
28 #include "base/test/test_file_util.h" | 28 #include "base/test/test_file_util.h" |
29 #include "base/time.h" | 29 #include "base/time.h" |
30 #include "base/utf_string_conversions.h" | 30 #include "base/utf_string_conversions.h" |
31 #include "chrome/app/chrome_dll_resource.h" | 31 #include "chrome/app/chrome_dll_resource.h" |
32 #include "chrome/browser/net/url_fixer_upper.h" | 32 #include "chrome/browser/net/url_fixer_upper.h" |
33 #include "chrome/common/automation_messages.h" | |
34 #include "chrome/common/chrome_constants.h" | 33 #include "chrome/common/chrome_constants.h" |
35 #include "chrome/common/chrome_paths.h" | 34 #include "chrome/common/chrome_paths.h" |
36 #include "chrome/common/chrome_switches.h" | 35 #include "chrome/common/chrome_switches.h" |
37 #include "chrome/common/debug_flags.h" | 36 #include "chrome/common/debug_flags.h" |
38 #include "chrome/common/logging_chrome.h" | 37 #include "chrome/common/logging_chrome.h" |
39 #include "chrome/common/json_value_serializer.h" | 38 #include "chrome/common/json_value_serializer.h" |
40 #include "chrome/common/url_constants.h" | 39 #include "chrome/common/url_constants.h" |
| 40 #include "chrome/test/automation/automation_messages.h" |
41 #include "chrome/test/automation/automation_proxy.h" | 41 #include "chrome/test/automation/automation_proxy.h" |
42 #include "chrome/test/automation/browser_proxy.h" | 42 #include "chrome/test/automation/browser_proxy.h" |
43 #include "chrome/test/automation/javascript_execution_controller.h" | 43 #include "chrome/test/automation/javascript_execution_controller.h" |
44 #include "chrome/test/automation/tab_proxy.h" | 44 #include "chrome/test/automation/tab_proxy.h" |
45 #include "chrome/test/automation/window_proxy.h" | 45 #include "chrome/test/automation/window_proxy.h" |
46 #include "chrome/test/chrome_process_util.h" | 46 #include "chrome/test/chrome_process_util.h" |
47 #include "chrome/test/test_launcher_utils.h" | 47 #include "chrome/test/test_launcher_utils.h" |
48 #include "chrome/test/test_switches.h" | 48 #include "chrome/test/test_switches.h" |
49 #include "googleurl/src/gurl.h" | 49 #include "googleurl/src/gurl.h" |
50 #include "net/base/net_util.h" | 50 #include "net/base/net_util.h" |
(...skipping 1096 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1147 bool visible = !wait_for_open; | 1147 bool visible = !wait_for_open; |
1148 if (!browser->IsShelfVisible(&visible)) | 1148 if (!browser->IsShelfVisible(&visible)) |
1149 continue; | 1149 continue; |
1150 if (visible == wait_for_open) | 1150 if (visible == wait_for_open) |
1151 return true; // Got the download shelf. | 1151 return true; // Got the download shelf. |
1152 } | 1152 } |
1153 | 1153 |
1154 ADD_FAILURE() << "Timeout reached in WaitForDownloadShelfVisibilityChange"; | 1154 ADD_FAILURE() << "Timeout reached in WaitForDownloadShelfVisibilityChange"; |
1155 return false; | 1155 return false; |
1156 } | 1156 } |
OLD | NEW |