OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/command_line.h" | 5 #include "base/command_line.h" |
6 #include "base/utf_string_conversions.h" | 6 #include "base/strings/utf_string_conversions.h" |
7 #include "chrome/browser/ui/browser.h" | 7 #include "chrome/browser/ui/browser.h" |
8 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 8 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
9 #include "chrome/common/chrome_switches.h" | 9 #include "chrome/common/chrome_switches.h" |
10 #include "chrome/test/base/in_process_browser_test.h" | 10 #include "chrome/test/base/in_process_browser_test.h" |
11 #include "chrome/test/base/ui_test_utils.h" | 11 #include "chrome/test/base/ui_test_utils.h" |
12 #include "content/public/test/browser_test_utils.h" | 12 #include "content/public/test/browser_test_utils.h" |
13 | 13 |
14 namespace { | 14 namespace { |
15 | 15 |
16 const char kPrefetchPage[] = "files/prerender/simple_prefetch.html"; | 16 const char kPrefetchPage[] = "files/prerender/simple_prefetch.html"; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 content::TitleWatcher title_watcher( | 69 content::TitleWatcher title_watcher( |
70 browser()->tab_strip_model()->GetActiveWebContents(), | 70 browser()->tab_strip_model()->GetActiveWebContents(), |
71 expected_title); | 71 expected_title); |
72 ui_test_utils::NavigateToURL(browser(), url); | 72 ui_test_utils::NavigateToURL(browser(), url); |
73 | 73 |
74 EXPECT_EQ(expected_title, title_watcher.WaitAndGetTitle()); | 74 EXPECT_EQ(expected_title, title_watcher.WaitAndGetTitle()); |
75 } | 75 } |
76 | 76 |
77 } // namespace | 77 } // namespace |
78 | 78 |
OLD | NEW |