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

Side by Side Diff: content/browser/renderer_host/test_render_view_host.cc

Issue 10008015: Fixing a problem, where a hung renderer process is not killed when navigating away (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed a test case due to invalid dependencies and added observer to existing test. Created 8 years, 8 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) 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/browser/renderer_host/test_backing_store.h" 5 #include "content/browser/renderer_host/test_backing_store.h"
6 #include "content/browser/renderer_host/test_render_view_host.h" 6 #include "content/browser/renderer_host/test_render_view_host.h"
7 #include "content/browser/site_instance_impl.h" 7 #include "content/browser/site_instance_impl.h"
8 #include "content/browser/tab_contents/navigation_controller_impl.h" 8 #include "content/browser/tab_contents/navigation_controller_impl.h"
9 #include "content/browser/tab_contents/test_web_contents.h" 9 #include "content/browser/tab_contents/test_web_contents.h"
10 #include "content/common/dom_storage_common.h" 10 #include "content/common/dom_storage_common.h"
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 267
268 void TestRenderViewHost::SendShouldCloseACK(bool proceed) { 268 void TestRenderViewHost::SendShouldCloseACK(bool proceed) {
269 OnMsgShouldCloseACK(proceed, base::TimeTicks(), base::TimeTicks()); 269 OnMsgShouldCloseACK(proceed, base::TimeTicks(), base::TimeTicks());
270 } 270 }
271 271
272 void TestRenderViewHost::SetContentsMimeType(const std::string& mime_type) { 272 void TestRenderViewHost::SetContentsMimeType(const std::string& mime_type) {
273 contents_mime_type_ = mime_type; 273 contents_mime_type_ = mime_type;
274 } 274 }
275 275
276 void TestRenderViewHost::SimulateSwapOutACK() { 276 void TestRenderViewHost::SimulateSwapOutACK() {
277 OnSwapOutACK(); 277 OnSwapOutACK(false);
278 } 278 }
279 279
280 void TestRenderViewHost::SimulateWasHidden() { 280 void TestRenderViewHost::SimulateWasHidden() {
281 WasHidden(); 281 WasHidden();
282 } 282 }
283 283
284 void TestRenderViewHost::SimulateWasRestored() { 284 void TestRenderViewHost::SimulateWasRestored() {
285 WasRestored(); 285 WasRestored();
286 } 286 }
287 287
(...skipping 23 matching lines...) Expand all
311 311
312 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() { 312 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() {
313 return static_cast<TestRenderViewHost*>(active_rvh()); 313 return static_cast<TestRenderViewHost*>(active_rvh());
314 } 314 }
315 315
316 TestWebContents* RenderViewHostImplTestHarness::contents() { 316 TestWebContents* RenderViewHostImplTestHarness::contents() {
317 return static_cast<TestWebContents*>(web_contents()); 317 return static_cast<TestWebContents*>(web_contents());
318 } 318 }
319 319
320 } // namespace content 320 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698