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

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

Issue 1055543004: Move Cache Storage API implementation to modules/cachestorage (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 5 years, 9 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/cachestorage/CacheStorage.idl ('k') | Source/modules/cachestorage/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/cachestorage/CacheTest.cpp
diff --git a/Source/modules/serviceworkers/CacheTest.cpp b/Source/modules/cachestorage/CacheTest.cpp
similarity index 98%
rename from Source/modules/serviceworkers/CacheTest.cpp
rename to Source/modules/cachestorage/CacheTest.cpp
index 3db0e3548e3183c0a5ad197746dcf3c348fc84df..7396d6ed20134fc13aa67bb4d2f8f40fb7f9c6a0 100644
--- a/Source/modules/serviceworkers/CacheTest.cpp
+++ b/Source/modules/cachestorage/CacheTest.cpp
@@ -3,7 +3,7 @@
// found in the LICENSE file.
#include "config.h"
-#include "modules/serviceworkers/Cache.h"
+#include "modules/cachestorage/Cache.h"
#include "bindings/core/v8/ExceptionState.h"
#include "bindings/core/v8/ScriptFunction.h"
@@ -152,9 +152,9 @@ public:
NotImplementedErrorCache() : ErrorWebCacheForTests(WebServiceWorkerCacheErrorNotImplemented) { }
};
-class ServiceWorkerCacheTest : public ::testing::Test {
+class CacheStorageTest : public ::testing::Test {
public:
- ServiceWorkerCacheTest()
+ CacheStorageTest()
: m_page(DummyPageHolder::create(IntSize(1, 1))) { }
ScriptState* scriptState() { return ScriptState::forMainWorld(m_page->document().frame()); }
@@ -280,7 +280,7 @@ RequestInfo requestToRequestInfo(Request* value)
return info;
}
-TEST_F(ServiceWorkerCacheTest, Basics)
+TEST_F(CacheStorageTest, Basics)
{
ErrorWebCacheForTests* testCache;
Cache* cache = Cache::create(testCache = new NotImplementedErrorCache());
@@ -304,7 +304,7 @@ TEST_F(ServiceWorkerCacheTest, Basics)
// Tests that arguments are faithfully passed on calls to Cache methods, except for methods which use batch operations,
// which are tested later.
-TEST_F(ServiceWorkerCacheTest, BasicArguments)
+TEST_F(CacheStorageTest, BasicArguments)
{
ErrorWebCacheForTests* testCache;
Cache* cache = Cache::create(testCache = new NotImplementedErrorCache());
@@ -358,7 +358,7 @@ TEST_F(ServiceWorkerCacheTest, BasicArguments)
}
// Tests that arguments are faithfully passed to API calls that degrade to batch operations.
-TEST_F(ServiceWorkerCacheTest, BatchOperationArguments)
+TEST_F(CacheStorageTest, BatchOperationArguments)
{
ErrorWebCacheForTests* testCache;
Cache* cache = Cache::create(testCache = new NotImplementedErrorCache());
@@ -436,7 +436,7 @@ private:
WebServiceWorkerResponse& m_response;
};
-TEST_F(ServiceWorkerCacheTest, MatchResponseTest)
+TEST_F(CacheStorageTest, MatchResponseTest)
{
const String requestUrl = "http://request.url/";
const String responseUrl = "http://match.response.test/";
@@ -470,7 +470,7 @@ private:
WebVector<WebServiceWorkerRequest>& m_requests;
};
-TEST_F(ServiceWorkerCacheTest, KeysResponseTest)
+TEST_F(CacheStorageTest, KeysResponseTest)
{
const String url1 = "http://first.request/";
const String url2 = "http://second.request/";
@@ -519,7 +519,7 @@ private:
WebVector<WebServiceWorkerResponse>& m_responses;
};
-TEST_F(ServiceWorkerCacheTest, MatchAllAndBatchResponseTest)
+TEST_F(CacheStorageTest, MatchAllAndBatchResponseTest)
{
const String url1 = "http://first.response/";
const String url2 = "http://second.response/";
« no previous file with comments | « Source/modules/cachestorage/CacheStorage.idl ('k') | Source/modules/cachestorage/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698