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

Unified Diff: content/common/input/web_input_event_traits_unittest.cc

Issue 2240983003: Move |ScopedWebInputEvent| and |WebInputEventTraits| from |content::| to "ui/events/blink" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and ncarter's review Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/input/web_input_event_traits.cc ('k') | content/common/input/web_touch_event_traits.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/input/web_input_event_traits_unittest.cc
diff --git a/content/common/input/web_input_event_traits_unittest.cc b/content/common/input/web_input_event_traits_unittest.cc
deleted file mode 100644
index 89baf881b07728677994bba3d283474b80db3f92..0000000000000000000000000000000000000000
--- a/content/common/input/web_input_event_traits_unittest.cc
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "content/common/input/web_input_event_traits.h"
-
-#include "testing/gtest/include/gtest/gtest.h"
-#include "third_party/WebKit/public/web/WebInputEvent.h"
-
-using blink::WebGestureEvent;
-using blink::WebInputEvent;
-using blink::WebKeyboardEvent;
-using blink::WebMouseEvent;
-using blink::WebMouseWheelEvent;
-using blink::WebTouchEvent;
-
-namespace content {
-namespace {
-
-using WebInputEventTraitsTest = testing::Test;
-
-// Very basic smoke test to ensure stringification doesn't explode.
-TEST_F(WebInputEventTraitsTest, ToString) {
- WebKeyboardEvent key;
- key.type = WebInputEvent::RawKeyDown;
- EXPECT_FALSE(WebInputEventTraits::ToString(key).empty());
-
- WebMouseEvent mouse;
- mouse.type = WebInputEvent::MouseMove;
- EXPECT_FALSE(WebInputEventTraits::ToString(mouse).empty());
-
- WebMouseWheelEvent mouse_wheel;
- mouse_wheel.type = WebInputEvent::MouseWheel;
- EXPECT_FALSE(WebInputEventTraits::ToString(mouse_wheel).empty());
-
- WebGestureEvent gesture;
- gesture.type = WebInputEvent::GesturePinchBegin;
- gesture.x = 1;
- gesture.y = 1;
- EXPECT_FALSE(WebInputEventTraits::ToString(gesture).empty());
-
- WebTouchEvent touch;
- touch.type = WebInputEvent::TouchStart;
- touch.touchesLength = 1;
- EXPECT_FALSE(WebInputEventTraits::ToString(touch).empty());
-}
-
-} // namespace
-} // namespace content
« no previous file with comments | « content/common/input/web_input_event_traits.cc ('k') | content/common/input/web_touch_event_traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698