| 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 kRouteId, | 174 kRouteId, |
| 175 kMainFrameRouteId, | 175 kMainFrameRouteId, |
| 176 kSurfaceId, | 176 kSurfaceId, |
| 177 kInvalidSessionStorageNamespaceId, | 177 kInvalidSessionStorageNamespaceId, |
| 178 base::string16(), | 178 base::string16(), |
| 179 false, // is_renderer_created | 179 false, // is_renderer_created |
| 180 false, // swapped_out | 180 false, // swapped_out |
| 181 false, // hidden | 181 false, // hidden |
| 182 1, // next_page_id | 182 1, // next_page_id |
| 183 blink::WebScreenInfo(), | 183 blink::WebScreenInfo(), |
| 184 AccessibilityModeOff, | 184 0, // accessibility_mode |
| 185 true); | 185 true); |
| 186 view->AddRef(); | 186 view->AddRef(); |
| 187 view_ = view; | 187 view_ = view; |
| 188 } | 188 } |
| 189 | 189 |
| 190 void RenderViewTest::TearDown() { | 190 void RenderViewTest::TearDown() { |
| 191 // Try very hard to collect garbage before shutting down. | 191 // Try very hard to collect garbage before shutting down. |
| 192 // "5" was chosen following http://crbug.com/46571#c9 | 192 // "5" was chosen following http://crbug.com/46571#c9 |
| 193 const int kGCIterations = 5; | 193 const int kGCIterations = 5; |
| 194 for (int i = 0; i < kGCIterations; i++) | 194 for (int i = 0; i < kGCIterations; i++) |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 | 379 |
| 380 ViewMsg_Navigate navigate_message(impl->GetRoutingID(), navigate_params); | 380 ViewMsg_Navigate navigate_message(impl->GetRoutingID(), navigate_params); |
| 381 OnMessageReceived(navigate_message); | 381 OnMessageReceived(navigate_message); |
| 382 | 382 |
| 383 // The load actually happens asynchronously, so we pump messages to process | 383 // The load actually happens asynchronously, so we pump messages to process |
| 384 // the pending continuation. | 384 // the pending continuation. |
| 385 ProcessPendingMessages(); | 385 ProcessPendingMessages(); |
| 386 } | 386 } |
| 387 | 387 |
| 388 } // namespace content | 388 } // namespace content |
| OLD | NEW |