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

Unified Diff: ui/touch_selection/touch_handle_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
« no previous file with comments | « ui/touch_selection/touch_handle_drawable_aura.h ('k') | ui/touch_selection/touch_selection_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/touch_selection/touch_handle_unittest.cc
diff --git a/ui/touch_selection/touch_handle_unittest.cc b/ui/touch_selection/touch_handle_unittest.cc
index 6f04b209fe27b38c1e906daf805080ce08434bc3..f4d6459a5e278a47e23eae9555561eaf38d84401 100644
--- a/ui/touch_selection/touch_handle_unittest.cc
+++ b/ui/touch_selection/touch_handle_unittest.cc
@@ -4,6 +4,7 @@
#include "ui/touch_selection/touch_handle.h"
+#include "base/memory/ptr_util.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/events/test/motion_event_test_utils.h"
#include "ui/gfx/geometry/rect_f.h"
@@ -107,8 +108,8 @@ class TouchHandleTest : public testing::Test, public TouchHandleClient {
void SetNeedsAnimate() override { needs_animate_ = true; }
- scoped_ptr<TouchHandleDrawable> CreateDrawable() override {
- return make_scoped_ptr(new MockTouchHandleDrawable(&drawable_data_));
+ std::unique_ptr<TouchHandleDrawable> CreateDrawable() override {
+ return base::WrapUnique(new MockTouchHandleDrawable(&drawable_data_));
}
base::TimeDelta GetMaxTapDuration() const override {
« no previous file with comments | « ui/touch_selection/touch_handle_drawable_aura.h ('k') | ui/touch_selection/touch_selection_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698