Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2221)

Side by Side Diff: content/browser/webui/web_ui_unittest.cc

Issue 6575054: WebUI: Move the core files of WebUI from chrome/browser/webui to content/webui. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/webui/new_tab_ui.h" 5 #include "chrome/browser/webui/new_tab_ui.h"
6 #include "chrome/common/url_constants.h" 6 #include "chrome/common/url_constants.h"
7 #include "chrome/test/testing_profile.h" 7 #include "chrome/test/testing_profile.h"
8 #include "content/browser/browser_thread.h" 8 #include "content/browser/browser_thread.h"
9 #include "content/browser/renderer_host/test_render_view_host.h" 9 #include "content/browser/renderer_host/test_render_view_host.h"
10 #include "content/browser/site_instance.h" 10 #include "content/browser/site_instance.h"
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
OLDNEW
« no previous file with comments | « content/browser/webui/web_ui_handler_browsertest.cc ('k') | content/browser/webui/web_ui_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698