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

Unified Diff: Source/modules/serviceworkers/RequestTest.cpp

Issue 478693005: Oilpan: Ship Oilpan for serviceworkers/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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
« no previous file with comments | « Source/modules/serviceworkers/RequestInit.h ('k') | Source/modules/serviceworkers/RespondWithObserver.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/serviceworkers/RequestTest.cpp
diff --git a/Source/modules/serviceworkers/RequestTest.cpp b/Source/modules/serviceworkers/RequestTest.cpp
index 9d63e895a79a9b4af3c637407fb0be9b27a0f79e..ef490b871212b08bb4e188de9db2faa036eeca63 100644
--- a/Source/modules/serviceworkers/RequestTest.cpp
+++ b/Source/modules/serviceworkers/RequestTest.cpp
@@ -35,7 +35,7 @@ TEST_F(ServiceWorkerRequestTest, FromString)
TrackExceptionState exceptionState;
KURL url(ParsedURLString, "http://www.example.com/");
- RefPtrWillBeRawPtr<Request> request = Request::create(executionContext(), url, exceptionState);
+ Request* request = Request::create(executionContext(), url, exceptionState);
ASSERT_FALSE(exceptionState.hadException());
ASSERT(request);
EXPECT_EQ(url, request->url());
@@ -46,10 +46,10 @@ TEST_F(ServiceWorkerRequestTest, FromRequest)
TrackExceptionState exceptionState;
KURL url(ParsedURLString, "http://www.example.com/");
- RefPtrWillBeRawPtr<Request> request1 = Request::create(executionContext(), url, exceptionState);
+ Request* request1 = Request::create(executionContext(), url, exceptionState);
ASSERT(request1);
- RefPtrWillBeRawPtr<Request> request2 = Request::create(executionContext(), request1.get(), exceptionState);
+ Request* request2 = Request::create(executionContext(), request1, exceptionState);
ASSERT_FALSE(exceptionState.hadException());
ASSERT(request2);
EXPECT_EQ(url, request2->url());
@@ -71,13 +71,13 @@ TEST_F(ServiceWorkerRequestTest, FromAndToWebRequest)
webRequest.setHeader(WebString::fromUTF8(headers[i].key), WebString::fromUTF8(headers[i].value));
webRequest.setReferrer(referrer, referrerPolicy);
- RefPtrWillBeRawPtr<Request> request = Request::create(webRequest);
+ Request* request = Request::create(webRequest);
ASSERT(request);
EXPECT_EQ(url, request->url());
EXPECT_EQ(method, request->method());
EXPECT_EQ(referrer, request->referrer());
- RefPtrWillBeRawPtr<Headers> requestHeaders = request->headers();
+ Headers* requestHeaders = request->headers();
WTF::HashMap<String, String> headersMap;
for (int i = 0; headers[i].key; ++i)
« no previous file with comments | « Source/modules/serviceworkers/RequestInit.h ('k') | Source/modules/serviceworkers/RespondWithObserver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698