OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_BROWSER_APPCACHE_MOCK_APPCACHE_STORAGE_H_ | 5 #ifndef CONTENT_BROWSER_APPCACHE_MOCK_APPCACHE_STORAGE_H_ |
6 #define CONTENT_BROWSER_APPCACHE_MOCK_APPCACHE_STORAGE_H_ | 6 #define CONTENT_BROWSER_APPCACHE_MOCK_APPCACHE_STORAGE_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/containers/hash_tables.h" | 13 #include "base/containers/hash_tables.h" |
14 #include "base/gtest_prod_util.h" | 14 #include "base/gtest_prod_util.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
17 #include "webkit/browser/appcache/appcache.h" | 17 #include "content/browser/appcache/appcache.h" |
18 #include "webkit/browser/appcache/appcache_disk_cache.h" | 18 #include "content/browser/appcache/appcache_disk_cache.h" |
19 #include "webkit/browser/appcache/appcache_group.h" | 19 #include "content/browser/appcache/appcache_group.h" |
20 #include "webkit/browser/appcache/appcache_response.h" | 20 #include "content/browser/appcache/appcache_response.h" |
21 #include "webkit/browser/appcache/appcache_storage.h" | 21 #include "content/browser/appcache/appcache_storage.h" |
22 | |
23 using appcache::AppCache; | |
24 using appcache::AppCacheDiskCache; | |
25 using appcache::AppCacheEntry; | |
26 using appcache::AppCacheGroup; | |
27 using appcache::AppCacheInfoCollection; | |
28 using appcache::AppCacheResponseReader; | |
29 using appcache::AppCacheResponseWriter; | |
30 using appcache::AppCacheServiceImpl; | |
31 using appcache::AppCacheStorage; | |
32 using appcache::kAppCacheNoCacheId; | |
33 | 22 |
34 namespace content { | 23 namespace content { |
35 FORWARD_DECLARE_TEST(AppCacheServiceImplTest, DeleteAppCachesForOrigin); | 24 FORWARD_DECLARE_TEST(AppCacheServiceImplTest, DeleteAppCachesForOrigin); |
36 FORWARD_DECLARE_TEST(MockAppCacheStorageTest, BasicFindMainResponse); | 25 FORWARD_DECLARE_TEST(MockAppCacheStorageTest, BasicFindMainResponse); |
37 FORWARD_DECLARE_TEST(MockAppCacheStorageTest, | 26 FORWARD_DECLARE_TEST(MockAppCacheStorageTest, |
38 BasicFindMainFallbackResponse); | 27 BasicFindMainFallbackResponse); |
39 FORWARD_DECLARE_TEST(MockAppCacheStorageTest, CreateGroup); | 28 FORWARD_DECLARE_TEST(MockAppCacheStorageTest, CreateGroup); |
40 FORWARD_DECLARE_TEST(MockAppCacheStorageTest, FindMainResponseExclusions); | 29 FORWARD_DECLARE_TEST(MockAppCacheStorageTest, FindMainResponseExclusions); |
41 FORWARD_DECLARE_TEST(MockAppCacheStorageTest, | 30 FORWARD_DECLARE_TEST(MockAppCacheStorageTest, |
42 FindMainResponseWithMultipleCandidates); | 31 FindMainResponseWithMultipleCandidates); |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 StoreExistingGroupExistingCache); | 234 StoreExistingGroupExistingCache); |
246 FRIEND_TEST_ALL_PREFIXES(AppCacheServiceImplTest, | 235 FRIEND_TEST_ALL_PREFIXES(AppCacheServiceImplTest, |
247 DeleteAppCachesForOrigin); | 236 DeleteAppCachesForOrigin); |
248 | 237 |
249 DISALLOW_COPY_AND_ASSIGN(MockAppCacheStorage); | 238 DISALLOW_COPY_AND_ASSIGN(MockAppCacheStorage); |
250 }; | 239 }; |
251 | 240 |
252 } // namespace content | 241 } // namespace content |
253 | 242 |
254 #endif // CONTENT_BROWSER_APPCACHE_MOCK_APPCACHE_STORAGE_H_ | 243 #endif // CONTENT_BROWSER_APPCACHE_MOCK_APPCACHE_STORAGE_H_ |
OLD | NEW |