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 #include "chrome/browser/browser_thread.h" | 5 #include "chrome/browser/browser_thread.h" |
6 #include "chrome/browser/dom_ui/new_tab_ui.h" | 6 #include "chrome/browser/dom_ui/new_tab_ui.h" |
7 #include "chrome/browser/renderer_host/site_instance.h" | 7 #include "chrome/browser/renderer_host/site_instance.h" |
8 #include "chrome/browser/renderer_host/test/test_render_view_host.h" | 8 #include "chrome/browser/renderer_host/test/test_render_view_host.h" |
9 #include "chrome/browser/tab_contents/navigation_controller.h" | 9 #include "chrome/browser/tab_contents/navigation_controller.h" |
10 #include "chrome/browser/tab_contents/test_tab_contents.h" | 10 #include "chrome/browser/tab_contents/test_tab_contents.h" |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 | 190 |
191 // Navigate forward. Shouldn't focus the location bar. | 191 // Navigate forward. Shouldn't focus the location bar. |
192 focus_called = tc->focus_called(); | 192 focus_called = tc->focus_called(); |
193 ASSERT_TRUE(controller().CanGoForward()); | 193 ASSERT_TRUE(controller().CanGoForward()); |
194 controller().GoForward(); | 194 controller().GoForward(); |
195 pending_rvh()->SendNavigate(next_page_id, next_url); | 195 pending_rvh()->SendNavigate(next_page_id, next_url); |
196 EXPECT_EQ(focus_called, tc->focus_called()); | 196 EXPECT_EQ(focus_called, tc->focus_called()); |
197 | 197 |
198 contents_.swap(tc_scoped_ptr); | 198 contents_.swap(tc_scoped_ptr); |
199 } | 199 } |
OLD | NEW |