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

Side by Side Diff: chrome/browser/renderer_host/test/test_render_view_host.cc

Issue 155071: Do some refactoring of renderer_host.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/renderer_host/test_render_view_host.h" 5 #include "chrome/browser/renderer_host/test/test_render_view_host.h"
6 6
7 #include "chrome/browser/renderer_host/backing_store.h" 7 #include "chrome/browser/renderer_host/backing_store.h"
8 #include "chrome/browser/tab_contents/test_web_contents.h" 8 #include "chrome/browser/tab_contents/test_web_contents.h"
9 #include "chrome/common/render_messages.h" 9 #include "chrome/common/render_messages.h"
10 10
11 using webkit_glue::PasswordForm; 11 using webkit_glue::PasswordForm;
12 12
13 TestRenderViewHost::TestRenderViewHost(SiteInstance* instance, 13 TestRenderViewHost::TestRenderViewHost(SiteInstance* instance,
14 RenderViewHostDelegate* delegate, 14 RenderViewHostDelegate* delegate,
15 int routing_id, 15 int routing_id,
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 contents_.reset(new TestTabContents(profile_.get(), instance)); 92 contents_.reset(new TestTabContents(profile_.get(), instance));
93 } 93 }
94 94
95 void RenderViewHostTestHarness::TearDown() { 95 void RenderViewHostTestHarness::TearDown() {
96 contents_.reset(); 96 contents_.reset();
97 97
98 // Make sure that we flush any messages related to TabContents destruction 98 // Make sure that we flush any messages related to TabContents destruction
99 // before we destroy the profile. 99 // before we destroy the profile.
100 MessageLoop::current()->RunAllPending(); 100 MessageLoop::current()->RunAllPending();
101 } 101 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698