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

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

Issue 6532073: Move core pieces of browser\renderer_host to src\content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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) 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 "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/scoped_ptr.h" 6 #include "base/scoped_ptr.h"
7 #include "base/shared_memory.h" 7 #include "base/shared_memory.h"
8 #include "base/timer.h" 8 #include "base/timer.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "chrome/browser/renderer_host/backing_store.h" 10 #include "chrome/browser/renderer_host/backing_store.h"
(...skipping 714 matching lines...) Expand 10 before | Expand all | Expand 10 after
725 // Start it again to ensure it still works. 725 // Start it again to ensure it still works.
726 EXPECT_FALSE(host_->unresponsive_timer_fired()); 726 EXPECT_FALSE(host_->unresponsive_timer_fired());
727 host_->StartHangMonitorTimeout(TimeDelta::FromMilliseconds(10)); 727 host_->StartHangMonitorTimeout(TimeDelta::FromMilliseconds(10));
728 728
729 // Wait long enough for first timeout and see if it fired. 729 // Wait long enough for first timeout and see if it fired.
730 MessageLoop::current()->PostDelayedTask(FROM_HERE, 730 MessageLoop::current()->PostDelayedTask(FROM_HERE,
731 new MessageLoop::QuitTask(), 10); 731 new MessageLoop::QuitTask(), 10);
732 MessageLoop::current()->Run(); 732 MessageLoop::current()->Run();
733 EXPECT_TRUE(host_->unresponsive_timer_fired()); 733 EXPECT_TRUE(host_->unresponsive_timer_fired());
734 } 734 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698