| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |