| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // History UI tests | 5 // History UI tests |
| 6 | 6 |
| 7 #include "base/file_path.h" | 7 #include "base/file_path.h" |
| 8 #include "base/test/test_timeouts.h" | 8 #include "base/test/test_timeouts.h" |
| 9 #include "chrome/browser/ui/view_ids.h" | 9 #include "chrome/browser/ui/view_ids.h" |
| 10 #include "chrome/test/automation/automation_proxy.h" | 10 #include "chrome/test/automation/automation_proxy.h" |
| 11 #include "chrome/test/automation/browser_proxy.h" | 11 #include "chrome/test/automation/browser_proxy.h" |
| 12 #include "chrome/test/automation/tab_proxy.h" | 12 #include "chrome/test/automation/tab_proxy.h" |
| 13 #include "chrome/test/automation/window_proxy.h" | 13 #include "chrome/test/automation/window_proxy.h" |
| 14 #include "chrome/test/base/ui_test_utils.h" |
| 14 #include "chrome/test/ui/ui_test.h" | 15 #include "chrome/test/ui/ui_test.h" |
| 15 #include "chrome/test/ui_test_utils.h" | |
| 16 #include "ui/base/events.h" | 16 #include "ui/base/events.h" |
| 17 #include "ui/gfx/rect.h" | 17 #include "ui/gfx/rect.h" |
| 18 | 18 |
| 19 namespace { | 19 namespace { |
| 20 | 20 |
| 21 const char kTestCompleteCookie[] = "status"; | 21 const char kTestCompleteCookie[] = "status"; |
| 22 const char kTestCompleteSuccess[] = "OK"; | 22 const char kTestCompleteSuccess[] = "OK"; |
| 23 const FilePath::CharType* kHistoryDir = FILE_PATH_LITERAL("History"); | 23 const FilePath::CharType* kHistoryDir = FILE_PATH_LITERAL("History"); |
| 24 | 24 |
| 25 } // namespace | 25 } // namespace |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 // the redirect is likely to be user-initiated. | 128 // the redirect is likely to be user-initiated. |
| 129 // Therefore, Page 21 should be in the history in addition to Page 22. | 129 // Therefore, Page 21 should be in the history in addition to Page 22. |
| 130 | 130 |
| 131 const FilePath test_case( | 131 const FilePath test_case( |
| 132 FILE_PATH_LITERAL("history_length_test_page_21.html")); | 132 FILE_PATH_LITERAL("history_length_test_page_21.html")); |
| 133 GURL url = ui_test_utils::GetTestUrl(FilePath(kHistoryDir), test_case); | 133 GURL url = ui_test_utils::GetTestUrl(FilePath(kHistoryDir), test_case); |
| 134 NavigateToURL(url); | 134 NavigateToURL(url); |
| 135 WaitForFinish("History_Length_Test_21", "1", url, kTestCompleteCookie, | 135 WaitForFinish("History_Length_Test_21", "1", url, kTestCompleteCookie, |
| 136 kTestCompleteSuccess, TestTimeouts::action_max_timeout_ms()); | 136 kTestCompleteSuccess, TestTimeouts::action_max_timeout_ms()); |
| 137 } | 137 } |
| OLD | NEW |