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

Unified Diff: ui/events/test/motion_event_test_utils.h

Issue 502993004: Remove abstract Clone and Cancel methods from MotionEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nasty bug fix Created 6 years, 2 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 | « ui/events/test/mock_motion_event.cc ('k') | ui/events/test/motion_event_test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/test/motion_event_test_utils.h
diff --git a/ui/events/test/mock_motion_event.h b/ui/events/test/motion_event_test_utils.h
similarity index 88%
rename from ui/events/test/mock_motion_event.h
rename to ui/events/test/motion_event_test_utils.h
index d04d7154eab7f90b0ee13541d4951cc83519e666..4010bc465ef7d34dae74fb77521f0c0f44aba745 100644
--- a/ui/events/test/mock_motion_event.h
+++ b/ui/events/test/motion_event_test_utils.h
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#ifndef UI_EVENTS_TEST_MOTION_EVENT_TEST_UTILS_H_
+#define UI_EVENTS_TEST_MOTION_EVENT_TEST_UTILS_H_
+
+#include <string>
#include <vector>
#include "base/basictypes.h"
@@ -39,10 +43,6 @@ struct MockMotionEvent : public MotionEventGeneric {
~MockMotionEvent() override;
- // MotionEvent methods.
- scoped_ptr<MotionEvent> Clone() const override;
- scoped_ptr<MotionEvent> Cancel() const override;
-
// Utility methods.
void PressPoint(float x, float y);
void MovePoint(size_t index, float x, float y);
@@ -57,5 +57,9 @@ struct MockMotionEvent : public MotionEventGeneric {
void ResolvePointers();
};
+std::string ToString(const MotionEvent& event);
+
} // namespace test
} // namespace ui
+
+#endif // UI_EVENTS_TEST_MOTION_EVENT_TEST_UTILS_H_
« no previous file with comments | « ui/events/test/mock_motion_event.cc ('k') | ui/events/test/motion_event_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698