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

Side by Side Diff: content/browser/renderer_host/test_render_view_host.cc

Issue 6693054: Get rid of extensions dependency from content\browser. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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
« no previous file with comments | « content/browser/renderer_host/test_render_view_host.h ('k') | content/browser/site_instance.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/browser_url_handler.h" 5 #include "chrome/browser/browser_url_handler.h"
6 #include "chrome/test/testing_profile.h" 6 #include "chrome/test/testing_profile.h"
7 #include "content/browser/renderer_host/test_backing_store.h" 7 #include "content/browser/renderer_host/test_backing_store.h"
8 #include "content/browser/renderer_host/test_render_view_host.h" 8 #include "content/browser/renderer_host/test_render_view_host.h"
9 #include "content/browser/site_instance.h" 9 #include "content/browser/site_instance.h"
10 #include "content/browser/tab_contents/navigation_controller.h" 10 #include "content/browser/tab_contents/navigation_controller.h"
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 } 331 }
332 332
333 void RenderViewHostTestHarness::Reload() { 333 void RenderViewHostTestHarness::Reload() {
334 NavigationEntry* entry = controller().GetLastCommittedEntry(); 334 NavigationEntry* entry = controller().GetLastCommittedEntry();
335 DCHECK(entry); 335 DCHECK(entry);
336 controller().Reload(false); 336 controller().Reload(false);
337 rvh()->SendNavigate(entry->page_id(), entry->url()); 337 rvh()->SendNavigate(entry->page_id(), entry->url());
338 } 338 }
339 339
340 void RenderViewHostTestHarness::SetUp() { 340 void RenderViewHostTestHarness::SetUp() {
341 // Initialize Chrome's ContentBrowserClient here, since we won't go through
342 // BrowserMain.
343 content::GetContentClient()->set_browser(&browser_client_);
344 contents_.reset(CreateTestTabContents()); 341 contents_.reset(CreateTestTabContents());
345 } 342 }
346 343
347 void RenderViewHostTestHarness::TearDown() { 344 void RenderViewHostTestHarness::TearDown() {
348 contents_.reset(); 345 contents_.reset();
349 346
350 // Make sure that we flush any messages related to TabContents destruction 347 // Make sure that we flush any messages related to TabContents destruction
351 // before we destroy the profile. 348 // before we destroy the profile.
352 MessageLoop::current()->RunAllPending(); 349 MessageLoop::current()->RunAllPending();
353 350
354 // Release the profile on the UI thread. 351 // Release the profile on the UI thread.
355 message_loop_.DeleteSoon(FROM_HERE, profile_.release()); 352 message_loop_.DeleteSoon(FROM_HERE, profile_.release());
356 message_loop_.RunAllPending(); 353 message_loop_.RunAllPending();
357 } 354 }
OLDNEW
« no previous file with comments | « content/browser/renderer_host/test_render_view_host.h ('k') | content/browser/site_instance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698