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

Side by Side Diff: content/renderer/pepper/plugin_instance_throttler_impl_unittest.cc

Issue 2590273002: Move WebMouseEvent into its own header file. (Closed)
Patch Set: Fix android build Created 3 years, 11 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
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 "content/renderer/pepper/plugin_instance_throttler_impl.h" 5 #include "content/renderer/pepper/plugin_instance_throttler_impl.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/message_loop/message_loop.h" 12 #include "base/message_loop/message_loop.h"
13 #include "content/public/common/content_switches.h" 13 #include "content/public/common/content_switches.h"
14 #include "content/public/renderer/render_frame.h" 14 #include "content/public/renderer/render_frame.h"
15 #include "testing/gmock/include/gmock/gmock.h" 15 #include "testing/gmock/include/gmock/gmock.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
17 #include "third_party/WebKit/public/platform/WebInputEvent.h" 17 #include "third_party/WebKit/public/platform/WebInputEvent.h"
18 #include "third_party/WebKit/public/platform/WebMouseEvent.h"
18 #include "third_party/WebKit/public/web/WebPluginParams.h" 19 #include "third_party/WebKit/public/web/WebPluginParams.h"
19 #include "ui/events/base_event_utils.h" 20 #include "ui/events/base_event_utils.h"
20 #include "ui/gfx/canvas.h" 21 #include "ui/gfx/canvas.h"
21 #include "url/gurl.h" 22 #include "url/gurl.h"
22 #include "url/origin.h" 23 #include "url/origin.h"
23 24
24 using testing::_; 25 using testing::_;
25 using testing::Return; 26 using testing::Return;
26 27
27 namespace content { 28 namespace content {
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 event.setModifiers(blink::WebInputEvent::Modifiers::MiddleButtonDown); 214 event.setModifiers(blink::WebInputEvent::Modifiers::MiddleButtonDown);
214 EXPECT_TRUE(throttler()->ConsumeInputEvent(event)); 215 EXPECT_TRUE(throttler()->ConsumeInputEvent(event));
215 EXPECT_TRUE(throttler()->IsThrottled()); 216 EXPECT_TRUE(throttler()->IsThrottled());
216 217
217 event.setModifiers(blink::WebInputEvent::Modifiers::LeftButtonDown); 218 event.setModifiers(blink::WebInputEvent::Modifiers::LeftButtonDown);
218 EXPECT_TRUE(throttler()->ConsumeInputEvent(event)); 219 EXPECT_TRUE(throttler()->ConsumeInputEvent(event));
219 EXPECT_FALSE(throttler()->IsThrottled()); 220 EXPECT_FALSE(throttler()->IsThrottled());
220 } 221 }
221 222
222 } // namespace content 223 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_plugin_instance_impl.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698