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/macros.h" |
| 7 #include "build/build_config.h" |
6 #include "chrome/browser/ui/browser.h" | 8 #include "chrome/browser/ui/browser.h" |
7 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 9 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
8 #include "chrome/common/chrome_switches.h" | 10 #include "chrome/common/chrome_switches.h" |
9 #include "chrome/test/base/in_process_browser_test.h" | 11 #include "chrome/test/base/in_process_browser_test.h" |
10 #include "chrome/test/base/ui_test_utils.h" | 12 #include "chrome/test/base/ui_test_utils.h" |
11 #include "content/public/browser/navigation_controller.h" | 13 #include "content/public/browser/navigation_controller.h" |
12 #include "content/public/browser/navigation_entry.h" | 14 #include "content/public/browser/navigation_entry.h" |
13 #include "content/public/browser/web_contents.h" | 15 #include "content/public/browser/web_contents.h" |
14 #include "content/public/test/browser_test_utils.h" | 16 #include "content/public/test/browser_test_utils.h" |
15 #include "net/test/embedded_test_server/embedded_test_server.h" | 17 #include "net/test/embedded_test_server/embedded_test_server.h" |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 | 110 |
109 ui_test_utils::NavigateToURL(browser(), url); | 111 ui_test_utils::NavigateToURL(browser(), url); |
110 NavigationEntry* entry = GetLastCommittedEntry(); | 112 NavigationEntry* entry = GetLastCommittedEntry(); |
111 | 113 |
112 ASSERT_TRUE(entry != NULL); | 114 ASSERT_TRUE(entry != NULL); |
113 EXPECT_EQ(url, entry->GetURL()); | 115 EXPECT_EQ(url, entry->GetURL()); |
114 EXPECT_EQ(url, entry->GetVirtualURL()); | 116 EXPECT_EQ(url, entry->GetVirtualURL()); |
115 } | 117 } |
116 | 118 |
117 } // namespace content | 119 } // namespace content |
OLD | NEW |