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

Unified Diff: third_party/WebKit/Source/core/fetch/ResourceFetcherTest.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/core/fetch/ResourceFetcherTest.cpp
diff --git a/third_party/WebKit/Source/core/fetch/ResourceFetcherTest.cpp b/third_party/WebKit/Source/core/fetch/ResourceFetcherTest.cpp
index f230f79468db09b9bfb325e9e8896a4a4b87e959..b17a699bbb0edf5c6103119e474e3621949084fb 100644
--- a/third_party/WebKit/Source/core/fetch/ResourceFetcherTest.cpp
+++ b/third_party/WebKit/Source/core/fetch/ResourceFetcherTest.cpp
@@ -46,6 +46,8 @@
#include "public/platform/WebURLLoaderMockFactory.h"
#include "public/platform/WebURLResponse.h"
#include "testing/gtest/include/gtest/gtest.h"
+#include "wtf/PtrUtil.h"
+#include <memory>
namespace blink {
@@ -83,12 +85,12 @@ public:
private:
ResourceFetcherTestMockFetchContext()
: m_policy(CachePolicyVerify)
- , m_runner(adoptPtr(new MockTaskRunner))
+ , m_runner(wrapUnique(new MockTaskRunner))
, m_complete(false)
{ }
CachePolicy m_policy;
- OwnPtr<MockTaskRunner> m_runner;
+ std::unique_ptr<MockTaskRunner> m_runner;
bool m_complete;
};
@@ -354,7 +356,7 @@ public:
// No callbacks should be received except for the notifyFinished()
// triggered by ResourceLoader::cancel().
void dataSent(Resource*, unsigned long long, unsigned long long) override { ASSERT_TRUE(false); }
- void responseReceived(Resource*, const ResourceResponse&, PassOwnPtr<WebDataConsumerHandle>) override { ASSERT_TRUE(false); }
+ void responseReceived(Resource*, const ResourceResponse&, std::unique_ptr<WebDataConsumerHandle>) override { ASSERT_TRUE(false); }
void setSerializedCachedMetadata(Resource*, const char*, size_t) override { ASSERT_TRUE(false); }
void dataReceived(Resource*, const char*, size_t) override { ASSERT_TRUE(false); }
void redirectReceived(Resource*, ResourceRequest&, const ResourceResponse&) override { ASSERT_TRUE(false); }
« no previous file with comments | « third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp ('k') | third_party/WebKit/Source/core/fetch/ResourceLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698