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

Unified Diff: ui/events/gesture_detection/touch_disposition_gesture_filter_unittest.cc

Issue 1868363002: Replace scoped_ptr with std::unique_ptr in //ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scopedptrcc
Patch Set: scopedptrui: rebase-make_scoped_ptr Created 4 years, 8 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
Index: ui/events/gesture_detection/touch_disposition_gesture_filter_unittest.cc
diff --git a/ui/events/gesture_detection/touch_disposition_gesture_filter_unittest.cc b/ui/events/gesture_detection/touch_disposition_gesture_filter_unittest.cc
index 078afb7d4ef68056dcabe362a59455a6bb88d944..a9cab0cc9b5ae8bfdb115d246b9baf2e163a2fed 100644
--- a/ui/events/gesture_detection/touch_disposition_gesture_filter_unittest.cc
+++ b/ui/events/gesture_detection/touch_disposition_gesture_filter_unittest.cc
@@ -2,12 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "ui/events/gesture_detection/touch_disposition_gesture_filter.h"
+
#include <stddef.h>
#include <stdint.h>
-#include "base/memory/scoped_ptr.h"
+#include <memory>
+
#include "testing/gtest/include/gtest/gtest.h"
-#include "ui/events/gesture_detection/touch_disposition_gesture_filter.h"
#include "ui/events/test/motion_event_test_utils.h"
using ui::test::MockMotionEvent;
@@ -269,14 +271,14 @@ class TouchDispositionGestureFilterTest
}
private:
- scoped_ptr<TouchDispositionGestureFilter> queue_;
+ std::unique_ptr<TouchDispositionGestureFilter> queue_;
bool cancel_after_next_gesture_;
MockMotionEvent touch_event_;
GestureEventDataPacket pending_gesture_packet_;
size_t sent_gesture_count_;
GestureList sent_gestures_;
gfx::Vector2dF raw_offset_;
- scoped_ptr<GestureEventData> last_sent_gesture_;
+ std::unique_ptr<GestureEventData> last_sent_gesture_;
gfx::Rect show_press_bounding_box_;
uint32_t last_sent_touch_event_id_;
};
« no previous file with comments | « ui/events/gesture_detection/motion_event_generic_unittest.cc ('k') | ui/events/gesture_detection/velocity_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698