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

Side by Side Diff: content/browser/renderer_host/input/gesture_event_queue_unittest.cc

Issue 264033002: Move some interfaces from content/port to internal content since they're not referenced in content/… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync Created 6 years, 7 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <vector> 5 #include <vector>
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
11 #include "base/time/time.h" 11 #include "base/time/time.h"
12 #include "content/browser/renderer_host/input/gesture_event_queue.h" 12 #include "content/browser/renderer_host/input/gesture_event_queue.h"
13 #include "content/browser/renderer_host/input/touchpad_tap_suppression_controlle r.h" 13 #include "content/browser/renderer_host/input/touchpad_tap_suppression_controlle r.h"
14 #include "content/common/input/input_event_ack_state.h"
14 #include "content/common/input/synthetic_web_input_event_builders.h" 15 #include "content/common/input/synthetic_web_input_event_builders.h"
15 #include "content/port/common/input_event_ack_state.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
17 #include "third_party/WebKit/public/web/WebInputEvent.h" 17 #include "third_party/WebKit/public/web/WebInputEvent.h"
18 18
19 using base::TimeDelta; 19 using base::TimeDelta;
20 using blink::WebGestureEvent; 20 using blink::WebGestureEvent;
21 using blink::WebInputEvent; 21 using blink::WebInputEvent;
22 22
23 namespace content { 23 namespace content {
24 24
25 class GestureEventQueueTest : public testing::Test, 25 class GestureEventQueueTest : public testing::Test,
(...skipping 1132 matching lines...) Expand 10 before | Expand all | Expand 10 after
1158 gesture_event.data.flingStart.velocityX = 0.f; 1158 gesture_event.data.flingStart.velocityX = 0.f;
1159 gesture_event.data.flingStart.velocityY = 0.f; 1159 gesture_event.data.flingStart.velocityY = 0.f;
1160 ASSERT_EQ(0U, GetAndResetSentGestureEventCount()); 1160 ASSERT_EQ(0U, GetAndResetSentGestureEventCount());
1161 ASSERT_EQ(0U, GestureEventQueueSize()); 1161 ASSERT_EQ(0U, GestureEventQueueSize());
1162 EXPECT_FALSE(SimulateGestureEvent(gesture_event)); 1162 EXPECT_FALSE(SimulateGestureEvent(gesture_event));
1163 EXPECT_EQ(0U, GetAndResetSentGestureEventCount()); 1163 EXPECT_EQ(0U, GetAndResetSentGestureEventCount());
1164 EXPECT_EQ(0U, GestureEventQueueSize()); 1164 EXPECT_EQ(0U, GestureEventQueueSize());
1165 } 1165 }
1166 1166
1167 } // namespace content 1167 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/input/gesture_event_queue.h ('k') | content/browser/renderer_host/input/input_ack_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698