| Index: third_party/WebKit/Source/core/fetch/MemoryCacheTest.cpp
|
| diff --git a/third_party/WebKit/Source/core/fetch/MemoryCacheTest.cpp b/third_party/WebKit/Source/core/fetch/MemoryCacheTest.cpp
|
| index 45b5d08be50682f451bec33d4eb8f5e8685ffaf4..a0772cf545cba9ea4e88dae8bc7a344d5b6f311d 100644
|
| --- a/third_party/WebKit/Source/core/fetch/MemoryCacheTest.cpp
|
| +++ b/third_party/WebKit/Source/core/fetch/MemoryCacheTest.cpp
|
| @@ -30,7 +30,7 @@
|
|
|
| #include "core/fetch/MemoryCache.h"
|
|
|
| -#include "core/fetch/MockImageResourceClient.h"
|
| +#include "core/fetch/MockResourceClients.h"
|
| #include "core/fetch/RawResource.h"
|
| #include "platform/network/ResourceRequest.h"
|
| #include "platform/testing/UnitTestHelpers.h"
|
| @@ -133,7 +133,7 @@ TEST_F(MemoryCacheTest, VeryLargeResourceAccounting)
|
| ASSERT_EQ(cachedResource->size(), memoryCache()->deadSize());
|
| ASSERT_EQ(0u, memoryCache()->liveSize());
|
|
|
| - MockImageResourceClient client(cachedResource);
|
| + MockResourceClient client(cachedResource);
|
| ASSERT_EQ(0u, memoryCache()->deadSize());
|
| ASSERT_EQ(cachedResource->size(), memoryCache()->liveSize());
|
|
|
| @@ -236,7 +236,7 @@ static void TestLiveResourceEvictionAtEndOfTask(Resource* cachedDeadResource, Re
|
| memoryCache()->setCapacities(minDeadCapacity, maxDeadCapacity, totalCapacity);
|
| const char data[6] = "abcde";
|
| cachedDeadResource->appendData(data, 3u);
|
| - MockImageResourceClient client(cachedLiveResource);
|
| + MockResourceClient client(cachedLiveResource);
|
| cachedLiveResource->appendData(data, 4u);
|
|
|
| Platform::current()->currentThread()->taskRunner()->postTask(BLINK_FROM_HERE, bind(&runTask1, PassRefPtrWillBeRawPtr<Resource>(cachedLiveResource), PassRefPtrWillBeRawPtr<Resource>(cachedDeadResource)));
|
| @@ -292,9 +292,9 @@ TEST_F(MemoryCacheTest, LiveResourceEvictionAtEndOfTask_MultipleResourceMaps)
|
| static void TestClientRemoval(Resource* resource1, Resource* resource2)
|
| {
|
| const char data[6] = "abcde";
|
| - MockImageResourceClient client1(resource1);
|
| + MockResourceClient client1(resource1);
|
| resource1->appendData(data, 4u);
|
| - MockImageResourceClient client2(resource2);
|
| + MockResourceClient client2(resource2);
|
| resource2->appendData(data, 4u);
|
|
|
| const unsigned minDeadCapacity = 0;
|
|
|