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 "base/basictypes.h" | 5 #include "base/basictypes.h" |
6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
7 #include "base/file_path.h" | 7 #include "base/file_path.h" |
8 #include "chrome/app/chrome_command_ids.h" | 8 #include "chrome/app/chrome_command_ids.h" |
9 #include "chrome/common/chrome_paths.h" | 9 #include "chrome/common/chrome_paths.h" |
10 #include "chrome/common/pref_names.h" | |
11 #include "chrome/common/url_constants.h" | 10 #include "chrome/common/url_constants.h" |
12 #include "chrome/test/automation/tab_proxy.h" | 11 #include "chrome/test/automation/tab_proxy.h" |
13 #include "chrome/test/automation/browser_proxy.h" | 12 #include "chrome/test/automation/browser_proxy.h" |
14 #include "chrome/test/automation/window_proxy.h" | 13 #include "chrome/test/automation/window_proxy.h" |
15 #include "chrome/test/ui/ui_test.h" | 14 #include "chrome/test/ui/ui_test.h" |
16 #include "googleurl/src/gurl.h" | 15 #include "googleurl/src/gurl.h" |
17 #include "net/base/net_util.h" | 16 #include "net/base/net_util.h" |
18 #include "net/test/test_server.h" | 17 #include "net/test/test_server.h" |
19 | 18 |
20 // http://code.google.com/p/chromium/issues/detail?id=14774 | 19 // http://code.google.com/p/chromium/issues/detail?id=14774 |
(...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
670 ASSERT_TRUE(tab->WaitForTabToBeRestored(action_timeout_ms())); | 669 ASSERT_TRUE(tab->WaitForTabToBeRestored(action_timeout_ms())); |
671 GURL url; | 670 GURL url; |
672 ASSERT_TRUE(tab->GetCurrentURL(&url)); | 671 ASSERT_TRUE(tab->GetCurrentURL(&url)); |
673 ASSERT_EQ(http_url, url); | 672 ASSERT_EQ(http_url, url); |
674 | 673 |
675 // Go back, and see if content is as expected. | 674 // Go back, and see if content is as expected. |
676 ASSERT_TRUE(tab->GoBack()); | 675 ASSERT_TRUE(tab->GoBack()); |
677 EXPECT_TRUE(tab->FindInPage(std::wstring(L"webkit"), FWD, IGNORE_CASE, false, | 676 EXPECT_TRUE(tab->FindInPage(std::wstring(L"webkit"), FWD, IGNORE_CASE, false, |
678 NULL)); | 677 NULL)); |
679 } | 678 } |
OLD | NEW |