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

Unified Diff: ui/events/event_processor_unittest.cc

Issue 2259753003: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/event.cc ('k') | ui/events/gestures/blink/web_gesture_curve_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/event_processor_unittest.cc
diff --git a/ui/events/event_processor_unittest.cc b/ui/events/event_processor_unittest.cc
index 3f34d09cbf4f98e555811189ca72d8cf8fc6d287..2428a24fb81e928a851dfc59e1fc734becdc6b27 100644
--- a/ui/events/event_processor_unittest.cc
+++ b/ui/events/event_processor_unittest.cc
@@ -31,10 +31,10 @@ class EventProcessorTest : public testing::Test {
protected:
// testing::Test:
void SetUp() override {
- processor_.SetRoot(base::WrapUnique(new TestEventTarget()));
+ processor_.SetRoot(base::MakeUnique<TestEventTarget>());
processor_.Reset();
root()->SetEventTargeter(
- base::WrapUnique(new TestEventTargeter(root(), false)));
+ base::MakeUnique<TestEventTargeter>(root(), false));
}
TestEventTarget* root() {
@@ -63,7 +63,7 @@ class EventProcessorTest : public testing::Test {
TEST_F(EventProcessorTest, Basic) {
std::unique_ptr<TestEventTarget> child(new TestEventTarget());
child->SetEventTargeter(
- base::WrapUnique(new TestEventTargeter(child.get(), false)));
+ base::MakeUnique<TestEventTargeter>(child.get(), false));
SetTarget(child.get());
root()->AddChild(std::move(child));
« no previous file with comments | « ui/events/event.cc ('k') | ui/events/gestures/blink/web_gesture_curve_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698