| 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/frame_messages.h" | 9 #include "content/common/frame_messages.h" |
| 10 #include "content/common/input_messages.h" | 10 #include "content/common/input_messages.h" |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 RendererPreferences(), | 182 RendererPreferences(), |
| 183 WebPreferences(), | 183 WebPreferences(), |
| 184 kRouteId, | 184 kRouteId, |
| 185 kMainFrameRouteId, | 185 kMainFrameRouteId, |
| 186 kSurfaceId, | 186 kSurfaceId, |
| 187 kInvalidSessionStorageNamespaceId, | 187 kInvalidSessionStorageNamespaceId, |
| 188 base::string16(), | 188 base::string16(), |
| 189 false, // is_renderer_created | 189 false, // is_renderer_created |
| 190 false, // swapped_out | 190 false, // swapped_out |
| 191 false, // hidden | 191 false, // hidden |
| 192 false, // background |
| 192 1, // next_page_id | 193 1, // next_page_id |
| 193 blink::WebScreenInfo(), | 194 blink::WebScreenInfo(), |
| 194 AccessibilityModeOff); | 195 AccessibilityModeOff); |
| 195 view->AddRef(); | 196 view->AddRef(); |
| 196 view_ = view; | 197 view_ = view; |
| 197 } | 198 } |
| 198 | 199 |
| 199 void RenderViewTest::TearDown() { | 200 void RenderViewTest::TearDown() { |
| 200 // Try very hard to collect garbage before shutting down. | 201 // Try very hard to collect garbage before shutting down. |
| 201 // "5" was chosen following http://crbug.com/46571#c9 | 202 // "5" was chosen following http://crbug.com/46571#c9 |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 411 FrameMsg_Navigate navigate_message(impl->main_render_frame()->GetRoutingID(), | 412 FrameMsg_Navigate navigate_message(impl->main_render_frame()->GetRoutingID(), |
| 412 navigate_params); | 413 navigate_params); |
| 413 impl->main_render_frame()->OnMessageReceived(navigate_message); | 414 impl->main_render_frame()->OnMessageReceived(navigate_message); |
| 414 | 415 |
| 415 // The load actually happens asynchronously, so we pump messages to process | 416 // The load actually happens asynchronously, so we pump messages to process |
| 416 // the pending continuation. | 417 // the pending continuation. |
| 417 ProcessPendingMessages(); | 418 ProcessPendingMessages(); |
| 418 } | 419 } |
| 419 | 420 |
| 420 } // namespace content | 421 } // namespace content |
| OLD | NEW |