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

Unified Diff: third_party/WebKit/Source/modules/cachestorage/CacheTest.cpp

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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/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.",

Powered by Google App Engine
This is Rietveld 408576698