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

Unified Diff: third_party/WebKit/Source/web/tests/CompositorWorkerTest.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/web/tests/CompositorWorkerTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/CompositorWorkerTest.cpp b/third_party/WebKit/Source/web/tests/CompositorWorkerTest.cpp
index c405ad1cce1f641d4f02b4f2cbd1bd39df321816..eb6d6338fc4d3c7d15c926fc1b161e4d9097e8d5 100644
--- a/third_party/WebKit/Source/web/tests/CompositorWorkerTest.cpp
+++ b/third_party/WebKit/Source/web/tests/CompositorWorkerTest.cpp
@@ -21,7 +21,9 @@
#include "web/WebLocalFrameImpl.h"
#include "web/WebViewImpl.h"
#include "web/tests/FrameTestHelpers.h"
+#include "wtf/PtrUtil.h"
#include <gtest/gtest.h>
+#include <memory>
namespace blink {
@@ -277,7 +279,7 @@ TEST_F(CompositorWorkerTest, applyingMutationsMultipleProperties)
EXPECT_NE(0UL, elementId);
TransformationMatrix transformMatrix(11, 12, 13, 14, 21, 22, 23, 24, 31, 32, 33, 34, 41, 42, 43, 44);
- OwnPtr<CompositorMutation> mutation = adoptPtr(new CompositorMutation);
+ std::unique_ptr<CompositorMutation> mutation = wrapUnique(new CompositorMutation);
mutation->setTransform(TransformationMatrix::toSkMatrix44(transformMatrix));
mutation->setOpacity(0.5);
@@ -291,7 +293,7 @@ TEST_F(CompositorWorkerTest, applyingMutationsMultipleProperties)
}
// Verify that updating one property does not impact others
- mutation = adoptPtr(new CompositorMutation);
+ mutation = wrapUnique(new CompositorMutation);
mutation->setOpacity(0.8);
proxiedElement->updateFromCompositorMutation(*mutation);
« no previous file with comments | « third_party/WebKit/Source/web/tests/ActivityLoggerTest.cpp ('k') | third_party/WebKit/Source/web/tests/FrameTestHelpers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698