| Index: third_party/WebKit/Source/platform/loader/fetch/RawResourceTest.cpp
|
| diff --git a/third_party/WebKit/Source/platform/loader/fetch/RawResourceTest.cpp b/third_party/WebKit/Source/platform/loader/fetch/RawResourceTest.cpp
|
| index 992f7ea246bf0aa74be1592064a8dcbe5d305479..5f38428fdb2f9bb79e4a58d4eb41b1cd09b667c4 100644
|
| --- a/third_party/WebKit/Source/platform/loader/fetch/RawResourceTest.cpp
|
| +++ b/third_party/WebKit/Source/platform/loader/fetch/RawResourceTest.cpp
|
| @@ -173,8 +173,9 @@ class AddingClient final : public GarbageCollectedFinalized<AddingClient>,
|
| ->currentThread()
|
| ->scheduler()
|
| ->loadingTaskRunner()
|
| - ->postTask(BLINK_FROM_HERE, WTF::bind(&AddingClient::removeClient,
|
| - wrapPersistent(this)));
|
| + ->postTask(
|
| + BLINK_FROM_HERE,
|
| + WTF::bind(&AddingClient::removeClient, wrapPersistent(this)));
|
| resource->addClient(m_dummyClient);
|
| }
|
| String debugName() const override { return "AddingClient"; }
|
| @@ -215,8 +216,9 @@ TEST_F(RawResourceTest, RevalidationSucceeded) {
|
| EXPECT_FALSE(resource->isCacheValidator());
|
| EXPECT_EQ(200, resource->response().httpStatusCode());
|
| EXPECT_EQ(4u, resource->resourceBuffer()->size());
|
| - EXPECT_EQ(resource, memoryCache()->resourceForURL(
|
| - KURL(ParsedURLString, "data:text/html,")));
|
| + EXPECT_EQ(
|
| + resource,
|
| + memoryCache()->resourceForURL(KURL(ParsedURLString, "data:text/html,")));
|
| memoryCache()->remove(resource);
|
|
|
| resource->removeClient(client);
|
| @@ -246,8 +248,9 @@ TEST_F(RawResourceTest, RevalidationSucceededForResourceWithoutBody) {
|
| EXPECT_FALSE(resource->isCacheValidator());
|
| EXPECT_EQ(200, resource->response().httpStatusCode());
|
| EXPECT_FALSE(resource->resourceBuffer());
|
| - EXPECT_EQ(resource, memoryCache()->resourceForURL(
|
| - KURL(ParsedURLString, "data:text/html,")));
|
| + EXPECT_EQ(
|
| + resource,
|
| + memoryCache()->resourceForURL(KURL(ParsedURLString, "data:text/html,")));
|
| memoryCache()->remove(resource);
|
|
|
| resource->removeClient(client);
|
| @@ -387,8 +390,9 @@ TEST_F(RawResourceTest, RedirectDuringRevalidation) {
|
| EXPECT_FALSE(resource->isCacheValidator());
|
| EXPECT_EQ(200, resource->response().httpStatusCode());
|
| EXPECT_EQ(3u, resource->resourceBuffer()->size());
|
| - EXPECT_EQ(resource, memoryCache()->resourceForURL(
|
| - KURL(ParsedURLString, "https://example.com/1")));
|
| + EXPECT_EQ(resource,
|
| + memoryCache()->resourceForURL(
|
| + KURL(ParsedURLString, "https://example.com/1")));
|
|
|
| EXPECT_TRUE(client->called());
|
| EXPECT_EQ(1, client->numberOfRedirectsReceived());
|
|
|