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 "base/basictypes.h" | 5 #include "base/basictypes.h" |
6 #include "base/keyboard_codes.h" | 6 #include "base/keyboard_codes.h" |
7 #include "base/scoped_ptr.h" | 7 #include "base/scoped_ptr.h" |
8 #include "base/shared_memory.h" | 8 #include "base/shared_memory.h" |
9 #include "base/timer.h" | 9 #include "base/timer.h" |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
11 #include "chrome/browser/renderer_host/backing_store.h" | 11 #include "chrome/browser/renderer_host/backing_store.h" |
12 #include "chrome/browser/renderer_host/render_widget_host_painting_observer.h" | 12 #include "chrome/browser/renderer_host/render_widget_host_painting_observer.h" |
13 #include "chrome/browser/renderer_host/test/test_render_view_host.h" | 13 #include "chrome/browser/renderer_host/test/test_render_view_host.h" |
14 #include "chrome/common/render_messages.h" | 14 #include "chrome/common/render_messages.h" |
| 15 #include "chrome/common/render_messages_params.h" |
15 #include "gfx/canvas_skia.h" | 16 #include "gfx/canvas_skia.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
17 | 18 |
18 using base::TimeDelta; | 19 using base::TimeDelta; |
19 | 20 |
20 using WebKit::WebInputEvent; | 21 using WebKit::WebInputEvent; |
21 using WebKit::WebMouseWheelEvent; | 22 using WebKit::WebMouseWheelEvent; |
22 | 23 |
23 namespace gfx { | 24 namespace gfx { |
24 class Size; | 25 class Size; |
(...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
697 // Start it again to ensure it still works. | 698 // Start it again to ensure it still works. |
698 EXPECT_FALSE(host_->unresponsive_timer_fired()); | 699 EXPECT_FALSE(host_->unresponsive_timer_fired()); |
699 host_->StartHangMonitorTimeout(TimeDelta::FromMilliseconds(10)); | 700 host_->StartHangMonitorTimeout(TimeDelta::FromMilliseconds(10)); |
700 | 701 |
701 // Wait long enough for first timeout and see if it fired. | 702 // Wait long enough for first timeout and see if it fired. |
702 MessageLoop::current()->PostDelayedTask(FROM_HERE, | 703 MessageLoop::current()->PostDelayedTask(FROM_HERE, |
703 new MessageLoop::QuitTask(), 10); | 704 new MessageLoop::QuitTask(), 10); |
704 MessageLoop::current()->Run(); | 705 MessageLoop::current()->Run(); |
705 EXPECT_TRUE(host_->unresponsive_timer_fired()); | 706 EXPECT_TRUE(host_->unresponsive_timer_fired()); |
706 } | 707 } |
OLD | NEW |