Index: Source/bindings/core/v8/V8ScriptRunnerTest.cpp |
diff --git a/Source/bindings/core/v8/V8ScriptRunnerTest.cpp b/Source/bindings/core/v8/V8ScriptRunnerTest.cpp |
index 2dbb0c5e35be6902912dcfd47fc25aaeca368e45..3fde4cf7aae259b025cc6ce0c93b684338bacb57 100644 |
--- a/Source/bindings/core/v8/V8ScriptRunnerTest.cpp |
+++ b/Source/bindings/core/v8/V8ScriptRunnerTest.cpp |
@@ -6,6 +6,7 @@ |
#include "bindings/core/v8/V8ScriptRunner.h" |
#include "core/fetch/ScriptResource.h" |
+#include "platform/heap/Handle.h" |
#include <gtest/gtest.h> |
#include <v8.h> |
@@ -80,18 +81,18 @@ public: |
void setEmptyResource() |
{ |
m_resourceRequest = WTF::adoptPtr(new ResourceRequest); |
- m_resource = WTF::adoptPtr(new ScriptResource(*m_resourceRequest.get(), "text/utf-8")); |
+ m_resource = adoptPtrWillBeNoop(new ScriptResource(*m_resourceRequest.get(), "text/utf-8")); |
} |
void setResource() |
{ |
m_resourceRequest = WTF::adoptPtr(new ResourceRequest(url())); |
- m_resource = WTF::adoptPtr(new ScriptResource(*m_resourceRequest.get(), "text/utf-8")); |
+ m_resource = adoptPtrWillBeNoop(new ScriptResource(*m_resourceRequest.get(), "text/utf-8")); |
} |
protected: |
WTF::OwnPtr<ResourceRequest> m_resourceRequest; |
- WTF::OwnPtr<ScriptResource> m_resource; |
+ OwnPtrWillBePersistent<ScriptResource> m_resource; |
static unsigned cacheTagParser; |
static unsigned cacheTagCode; |