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

Unified Diff: ui/events/ozone/layout/keyboard_layout_engine_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/ozone/layout/keyboard_layout_engine_unittest.cc
diff --git a/ui/events/ozone/layout/keyboard_layout_engine_unittest.cc b/ui/events/ozone/layout/keyboard_layout_engine_unittest.cc
index b897550d59031aa6fb6b8b4b6741ae806105c456..f28bfbb894e70e0c9cdc7acad9fb4b8afe28df76 100644
--- a/ui/events/ozone/layout/keyboard_layout_engine_unittest.cc
+++ b/ui/events/ozone/layout/keyboard_layout_engine_unittest.cc
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "base/memory/ptr_util.h"
#include "base/strings/stringprintf.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/events/event.h"
@@ -192,7 +193,8 @@ void TestLookup(const char* name, KeyboardLayoutEngine* engine) {
VKEY_A, 1},
};
- KeyboardLayoutEngineManager::SetKeyboardLayoutEngine(make_scoped_ptr(engine));
+ KeyboardLayoutEngineManager::SetKeyboardLayoutEngine(
+ base::WrapUnique(engine));
for (const auto& t : kTestCases) {
DomKey dom_key;
« no previous file with comments | « ui/events/ozone/layout/keyboard_layout_engine_manager.cc ('k') | ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698