| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/public/test/render_view_test.h" | 5 #include "content/public/test/render_view_test.h" |
| 6 | 6 |
| 7 #include "base/run_loop.h" | 7 #include "base/run_loop.h" |
| 8 #include "content/common/dom_storage/dom_storage_types.h" | 8 #include "content/common/dom_storage/dom_storage_types.h" |
| 9 #include "content/common/input_messages.h" | 9 #include "content/common/input_messages.h" |
| 10 #include "content/common/view_messages.h" | 10 #include "content/common/view_messages.h" |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 RenderViewImpl* view = RenderViewImpl::Create( | 168 RenderViewImpl* view = RenderViewImpl::Create( |
| 169 kOpenerId, | 169 kOpenerId, |
| 170 RendererPreferences(), | 170 RendererPreferences(), |
| 171 WebPreferences(), | 171 WebPreferences(), |
| 172 new SharedRenderViewCounter(0), | 172 new SharedRenderViewCounter(0), |
| 173 kRouteId, | 173 kRouteId, |
| 174 kMainFrameRouteId, | 174 kMainFrameRouteId, |
| 175 kSurfaceId, | 175 kSurfaceId, |
| 176 kInvalidSessionStorageNamespaceId, | 176 kInvalidSessionStorageNamespaceId, |
| 177 string16(), | 177 string16(), |
| 178 false, | 178 false, // is_renderer_created |
| 179 false, | 179 false, // swapped_out |
| 180 1, | 180 false, // hidden |
| 181 1, // next_page_id |
| 181 WebKit::WebScreenInfo(), | 182 WebKit::WebScreenInfo(), |
| 182 AccessibilityModeOff, | 183 AccessibilityModeOff, |
| 183 true); | 184 true); |
| 184 view->AddRef(); | 185 view->AddRef(); |
| 185 view_ = view; | 186 view_ = view; |
| 186 } | 187 } |
| 187 | 188 |
| 188 void RenderViewTest::TearDown() { | 189 void RenderViewTest::TearDown() { |
| 189 // Try very hard to collect garbage before shutting down. | 190 // Try very hard to collect garbage before shutting down. |
| 190 GetMainFrame()->collectGarbage(); | 191 GetMainFrame()->collectGarbage(); |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 | 372 |
| 372 ViewMsg_Navigate navigate_message(impl->GetRoutingID(), navigate_params); | 373 ViewMsg_Navigate navigate_message(impl->GetRoutingID(), navigate_params); |
| 373 OnMessageReceived(navigate_message); | 374 OnMessageReceived(navigate_message); |
| 374 | 375 |
| 375 // The load actually happens asynchronously, so we pump messages to process | 376 // The load actually happens asynchronously, so we pump messages to process |
| 376 // the pending continuation. | 377 // the pending continuation. |
| 377 ProcessPendingMessages(); | 378 ProcessPendingMessages(); |
| 378 } | 379 } |
| 379 | 380 |
| 380 } // namespace content | 381 } // namespace content |
| OLD | NEW |