OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/memory/scoped_ptr.h" | 6 #include "base/memory/scoped_ptr.h" |
7 #include "base/time/time.h" | 7 #include "base/time/time.h" |
8 #include "content/browser/renderer_host/render_widget_host_delegate.h" | 8 #include "content/browser/renderer_host/render_widget_host_delegate.h" |
9 #include "content/browser/renderer_host/synthetic_gesture_controller.h" | 9 #include "content/browser/renderer_host/synthetic_gesture_controller.h" |
10 #include "content/browser/renderer_host/test_render_view_host.h" | 10 #include "content/browser/renderer_host/test_render_view_host.h" |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 EXPECT_EQ(original_gesture, view_->mock_gesture_); | 174 EXPECT_EQ(original_gesture, view_->mock_gesture_); |
175 | 175 |
176 // Ensure the smooth scroll is ticked. | 176 // Ensure the smooth scroll is ticked. |
177 PostQuitMessageAndRun(); | 177 PostQuitMessageAndRun(); |
178 EXPECT_LT(current_ticks, view_->mock_gesture_->called_); | 178 EXPECT_LT(current_ticks, view_->mock_gesture_->called_); |
179 } | 179 } |
180 | 180 |
181 } // namespace | 181 } // namespace |
182 | 182 |
183 } // namespace content | 183 } // namespace content |
OLD | NEW |