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

Unified Diff: ui/views/touchui/touch_selection_controller_impl_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/views/touchui/touch_selection_controller_impl_unittest.cc
diff --git a/ui/views/touchui/touch_selection_controller_impl_unittest.cc b/ui/views/touchui/touch_selection_controller_impl_unittest.cc
index 3bdbbd5f6c54fa211a1ad2f2710ed46594651b05..213170162b2aa9dcff012bc3903dedda6939dc74 100644
--- a/ui/views/touchui/touch_selection_controller_impl_unittest.cc
+++ b/ui/views/touchui/touch_selection_controller_impl_unittest.cc
@@ -273,9 +273,9 @@ class TouchSelectionControllerImplTest : public ViewsTestBase {
Widget* widget_;
Textfield* textfield_;
- scoped_ptr<TextfieldTestApi> textfield_test_api_;
- scoped_ptr<ViewsTouchEditingControllerFactory> views_tsc_factory_;
- scoped_ptr<aura::test::TestCursorClient> test_cursor_client_;
+ std::unique_ptr<TextfieldTestApi> textfield_test_api_;
+ std::unique_ptr<ViewsTouchEditingControllerFactory> views_tsc_factory_;
+ std::unique_ptr<aura::test::TestCursorClient> test_cursor_client_;
private:
DISALLOW_COPY_AND_ASSIGN(TouchSelectionControllerImplTest);
@@ -685,8 +685,9 @@ TEST_F(TouchSelectionControllerImplTest,
CreateWidget();
TestTouchEditable touch_editable(widget_->GetNativeView());
- scoped_ptr<ui::TouchEditingControllerDeprecated> touch_selection_controller(
- ui::TouchEditingControllerDeprecated::Create(&touch_editable));
+ std::unique_ptr<ui::TouchEditingControllerDeprecated>
+ touch_selection_controller(
+ ui::TouchEditingControllerDeprecated::Create(&touch_editable));
touch_editable.set_bounds(gfx::Rect(0, 0, 100, 20));
« no previous file with comments | « ui/views/touchui/touch_selection_controller_impl.cc ('k') | ui/views/touchui/touch_selection_menu_runner_views.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698