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

Side by Side Diff: content/renderer/render_widget_unittest.cc

Issue 686523002: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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 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 "content/renderer/render_widget.h" 5 #include "content/renderer/render_widget.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "content/common/input/synthetic_web_input_event_builders.h" 9 #include "content/common/input/synthetic_web_input_event_builders.h"
10 #include "content/common/input_messages.h" 10 #include "content/common/input_messages.h"
11 #include "content/public/test/mock_render_thread.h" 11 #include "content/public/test/mock_render_thread.h"
12 #include "content/test/mock_render_process.h" 12 #include "content/test/mock_render_process.h"
13 #include "ipc/ipc_test_sink.h" 13 #include "ipc/ipc_test_sink.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 #include "third_party/WebKit/public/web/WebInputEvent.h" 15 #include "third_party/WebKit/public/web/WebInputEvent.h"
16 #include "ui/gfx/rect.h" 16 #include "ui/gfx/rect.h"
17 17
18 namespace content { 18 namespace content {
19 19
20 class RenderWidgetUnittest : public testing::Test { 20 class RenderWidgetUnittest : public testing::Test {
21 public: 21 public:
22 RenderWidgetUnittest() {} 22 RenderWidgetUnittest() {}
23 virtual ~RenderWidgetUnittest() {} 23 ~RenderWidgetUnittest() override {}
24 24
25 private: 25 private:
26 MockRenderProcess render_process_; 26 MockRenderProcess render_process_;
27 MockRenderThread render_thread_; 27 MockRenderThread render_thread_;
28 28
29 DISALLOW_COPY_AND_ASSIGN(RenderWidgetUnittest); 29 DISALLOW_COPY_AND_ASSIGN(RenderWidgetUnittest);
30 }; 30 };
31 31
32 class TouchableRenderWidget : public RenderWidget { 32 class TouchableRenderWidget : public RenderWidget {
33 public: 33 public:
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 ASSERT_EQ(1u, widget->sink()->message_count()); 137 ASSERT_EQ(1u, widget->sink()->message_count());
138 message = widget->sink()->GetMessageAt(0); 138 message = widget->sink()->GetMessageAt(0);
139 EXPECT_EQ(InputHostMsg_HandleInputEvent_ACK::ID, message->type()); 139 EXPECT_EQ(InputHostMsg_HandleInputEvent_ACK::ID, message->type());
140 InputHostMsg_HandleInputEvent_ACK::Read(message, &params); 140 InputHostMsg_HandleInputEvent_ACK::Read(message, &params);
141 ack_state = params.a.state; 141 ack_state = params.a.state;
142 EXPECT_EQ(INPUT_EVENT_ACK_STATE_NOT_CONSUMED, ack_state); 142 EXPECT_EQ(INPUT_EVENT_ACK_STATE_NOT_CONSUMED, ack_state);
143 widget->sink()->ClearMessages(); 143 widget->sink()->ClearMessages();
144 } 144 }
145 145
146 } // namespace content 146 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_view_browsertest.cc ('k') | content/renderer/scheduler/task_queue_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698