| Index: third_party/WebKit/Source/modules/cachestorage/CacheTest.cpp
|
| diff --git a/third_party/WebKit/Source/modules/cachestorage/CacheTest.cpp b/third_party/WebKit/Source/modules/cachestorage/CacheTest.cpp
|
| index 27ad81ff04ac58404008edf460e56349aeccec9b..a70cab2470ddb62feb5ffa054773e67a637ef125 100644
|
| --- a/third_party/WebKit/Source/modules/cachestorage/CacheTest.cpp
|
| +++ b/third_party/WebKit/Source/modules/cachestorage/CacheTest.cpp
|
| @@ -66,9 +66,10 @@ class ScopedFetcherForTests final
|
| return promise;
|
| }
|
| return ScriptPromise::reject(
|
| - scriptState, V8ThrowException::createTypeError(
|
| - scriptState->isolate(),
|
| - "Unexpected call to fetch, no response available."));
|
| + scriptState,
|
| + V8ThrowException::createTypeError(
|
| + scriptState->isolate(),
|
| + "Unexpected call to fetch, no response available."));
|
| }
|
|
|
| // This does not take ownership of its parameter. The provided sample object
|
| @@ -186,8 +187,9 @@ class ErrorWebCacheForTests : public WebServiceWorkerCache {
|
| const WebVector<BatchOperation> expectedBatchOperations =
|
| *m_expectedBatchOperations;
|
| EXPECT_EQ(expectedBatchOperations.size(), batchOperations.size());
|
| - for (int i = 0, minsize = std::min(expectedBatchOperations.size(),
|
| - batchOperations.size());
|
| + for (int i = 0,
|
| + minsize = std::min(expectedBatchOperations.size(),
|
| + batchOperations.size());
|
| i < minsize; ++i) {
|
| EXPECT_EQ(expectedBatchOperations[i].operationType,
|
| batchOperations[i].operationType);
|
| @@ -362,15 +364,17 @@ TEST_F(CacheStorageTest, Basics) {
|
| getScriptState(), stringToRequestInfo(url), options, exceptionState);
|
| EXPECT_EQ(kNotImplementedString, getRejectString(matchPromise));
|
|
|
| - cache = createCache(fetcher, testCache = new ErrorWebCacheForTests(
|
| - WebServiceWorkerCacheErrorNotFound));
|
| + cache = createCache(fetcher,
|
| + testCache = new ErrorWebCacheForTests(
|
| + WebServiceWorkerCacheErrorNotFound));
|
| matchPromise = cache->match(getScriptState(), stringToRequestInfo(url),
|
| options, exceptionState);
|
| ScriptValue scriptValue = getResolveValue(matchPromise);
|
| EXPECT_TRUE(scriptValue.isUndefined());
|
|
|
| - cache = createCache(fetcher, testCache = new ErrorWebCacheForTests(
|
| - WebServiceWorkerCacheErrorExists));
|
| + cache = createCache(
|
| + fetcher,
|
| + testCache = new ErrorWebCacheForTests(WebServiceWorkerCacheErrorExists));
|
| matchPromise = cache->match(getScriptState(), stringToRequestInfo(url),
|
| options, exceptionState);
|
| EXPECT_EQ("InvalidAccessError: Entry already exists.",
|
|
|