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

Unified Diff: third_party/WebKit/Source/platform/graphics/CompositorMutatorClientTest.cpp

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. Created 4 years, 6 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: third_party/WebKit/Source/platform/graphics/CompositorMutatorClientTest.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/CompositorMutatorClientTest.cpp b/third_party/WebKit/Source/platform/graphics/CompositorMutatorClientTest.cpp
index 26fade650969c7270c31c27b0cfd598b8be7bf33..58c8e611b2c66394fcbb58f26432efddebb1117b 100644
--- a/third_party/WebKit/Source/platform/graphics/CompositorMutatorClientTest.cpp
+++ b/third_party/WebKit/Source/platform/graphics/CompositorMutatorClientTest.cpp
@@ -10,7 +10,8 @@
#include "platform/graphics/CompositorMutator.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
-#include "wtf/OwnPtr.h"
+#include "wtf/PtrUtil.h"
+#include <memory>
using ::testing::_;
@@ -38,7 +39,7 @@ TEST(CompositorMutatorClient, CallbackForNonNullMutationsShouldApply)
MockCompositoMutationsTarget target;
CompositorMutatorClient client(new StubCompositorMutator, &target);
- OwnPtr<CompositorMutations> mutations = adoptPtr(new CompositorMutations());
+ std::unique_ptr<CompositorMutations> mutations = wrapUnique(new CompositorMutations());
client.setMutationsForTesting(std::move(mutations));
EXPECT_CALL(target, applyMutations(_));

Powered by Google App Engine
This is Rietveld 408576698