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

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

Issue 679243002: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
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"
(...skipping 13 matching lines...) Expand all
24 namespace content { 24 namespace content {
25 25
26 class GestureEventQueueTest : public testing::Test, 26 class GestureEventQueueTest : public testing::Test,
27 public GestureEventQueueClient, 27 public GestureEventQueueClient,
28 public TouchpadTapSuppressionControllerClient { 28 public TouchpadTapSuppressionControllerClient {
29 public: 29 public:
30 GestureEventQueueTest() 30 GestureEventQueueTest()
31 : acked_gesture_event_count_(0), 31 : acked_gesture_event_count_(0),
32 sent_gesture_event_count_(0) {} 32 sent_gesture_event_count_(0) {}
33 33
34 virtual ~GestureEventQueueTest() {} 34 ~GestureEventQueueTest() override {}
35 35
36 // testing::Test 36 // testing::Test
37 virtual void SetUp() override { 37 void SetUp() override {
38 queue_.reset(new GestureEventQueue(this, this, DefaultConfig())); 38 queue_.reset(new GestureEventQueue(this, this, DefaultConfig()));
39 } 39 }
40 40
41 virtual void TearDown() override { 41 void TearDown() override {
42 // Process all pending tasks to avoid leaks. 42 // Process all pending tasks to avoid leaks.
43 RunUntilIdle(); 43 RunUntilIdle();
44 queue_.reset(); 44 queue_.reset();
45 } 45 }
46 46
47 // GestureEventQueueClient 47 // GestureEventQueueClient
48 void SendGestureEventImmediately( 48 void SendGestureEventImmediately(
49 const GestureEventWithLatencyInfo& event) override { 49 const GestureEventWithLatencyInfo& event) override {
50 ++sent_gesture_event_count_; 50 ++sent_gesture_event_count_;
51 if (sync_ack_result_) { 51 if (sync_ack_result_) {
(...skipping 1096 matching lines...) Expand 10 before | Expand all | Expand 10 after
1148 WebInputEvent::GestureScrollUpdate}; 1148 WebInputEvent::GestureScrollUpdate};
1149 1149
1150 for (unsigned i = 0; i < sizeof(expected) / sizeof(WebInputEvent::Type); 1150 for (unsigned i = 0; i < sizeof(expected) / sizeof(WebInputEvent::Type);
1151 i++) { 1151 i++) {
1152 WebGestureEvent merged_event = GestureEventQueueEventAt(i); 1152 WebGestureEvent merged_event = GestureEventQueueEventAt(i);
1153 EXPECT_EQ(expected[i], merged_event.type); 1153 EXPECT_EQ(expected[i], merged_event.type);
1154 } 1154 }
1155 } 1155 }
1156 1156
1157 } // namespace content 1157 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698