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 eb6d6338fc4d3c7d15c926fc1b161e4d9097e8d5..c405ad1cce1f641d4f02b4f2cbd1bd39df321816 100644 |
--- a/third_party/WebKit/Source/web/tests/CompositorWorkerTest.cpp |
+++ b/third_party/WebKit/Source/web/tests/CompositorWorkerTest.cpp |
@@ -21,9 +21,7 @@ |
#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 { |
@@ -279,7 +277,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); |
- std::unique_ptr<CompositorMutation> mutation = wrapUnique(new CompositorMutation); |
+ OwnPtr<CompositorMutation> mutation = adoptPtr(new CompositorMutation); |
mutation->setTransform(TransformationMatrix::toSkMatrix44(transformMatrix)); |
mutation->setOpacity(0.5); |
@@ -293,7 +291,7 @@ TEST_F(CompositorWorkerTest, applyingMutationsMultipleProperties) |
} |
// Verify that updating one property does not impact others |
- mutation = wrapUnique(new CompositorMutation); |
+ mutation = adoptPtr(new CompositorMutation); |
mutation->setOpacity(0.8); |
proxiedElement->updateFromCompositorMutation(*mutation); |