| OLD | NEW |
| 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 "app/gfx/canvas.h" | |
| 6 #include "base/basictypes.h" | 5 #include "base/basictypes.h" |
| 7 #include "base/keyboard_codes.h" | 6 #include "base/keyboard_codes.h" |
| 8 #include "base/scoped_ptr.h" | 7 #include "base/scoped_ptr.h" |
| 9 #include "base/shared_memory.h" | 8 #include "base/shared_memory.h" |
| 10 #include "base/timer.h" | 9 #include "base/timer.h" |
| 11 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| 12 #include "chrome/browser/renderer_host/backing_store.h" | 11 #include "chrome/browser/renderer_host/backing_store.h" |
| 13 #include "chrome/browser/renderer_host/test/test_render_view_host.h" | 12 #include "chrome/browser/renderer_host/test/test_render_view_host.h" |
| 14 #include "chrome/common/render_messages.h" | 13 #include "chrome/common/render_messages.h" |
| 14 #include "gfx/canvas.h" |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
| 16 | 16 |
| 17 using base::TimeDelta; | 17 using base::TimeDelta; |
| 18 | 18 |
| 19 using WebKit::WebInputEvent; | 19 using WebKit::WebInputEvent; |
| 20 using WebKit::WebMouseWheelEvent; | 20 using WebKit::WebMouseWheelEvent; |
| 21 | 21 |
| 22 // RenderWidgetHostProcess ----------------------------------------------------- | 22 // RenderWidgetHostProcess ----------------------------------------------------- |
| 23 | 23 |
| 24 class RenderWidgetHostProcess : public MockRenderProcessHost { | 24 class RenderWidgetHostProcess : public MockRenderProcessHost { |
| (...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 643 EXPECT_FALSE(host_->unresponsive_timer_fired()); | 643 EXPECT_FALSE(host_->unresponsive_timer_fired()); |
| 644 host_->StartHangMonitorTimeout(TimeDelta::FromMilliseconds(10)); | 644 host_->StartHangMonitorTimeout(TimeDelta::FromMilliseconds(10)); |
| 645 | 645 |
| 646 // Wait long enough for first timeout and see if it fired. | 646 // Wait long enough for first timeout and see if it fired. |
| 647 MessageLoop::current()->PostDelayedTask(FROM_HERE, | 647 MessageLoop::current()->PostDelayedTask(FROM_HERE, |
| 648 new MessageLoop::QuitTask(), 10); | 648 new MessageLoop::QuitTask(), 10); |
| 649 MessageLoop::current()->Run(); | 649 MessageLoop::current()->Run(); |
| 650 EXPECT_TRUE(host_->unresponsive_timer_fired()); | 650 EXPECT_TRUE(host_->unresponsive_timer_fired()); |
| 651 } | 651 } |
| 652 | 652 |
| OLD | NEW |