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

Side by Side Diff: content/test/appcache_test_helper.h

Issue 344493002: Move all remaining appcache-related code to content namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_TEST_APPCACHE_TEST_HELPER_H_ 5 #ifndef CONTENT_TEST_APPCACHE_TEST_HELPER_H_
6 #define CONTENT_TEST_APPCACHE_TEST_HELPER_H_ 6 #define CONTENT_TEST_APPCACHE_TEST_HELPER_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "webkit/browser/appcache/appcache_storage.h" 10 #include "content/browser/appcache/appcache_storage.h"
11 11
12 namespace appcache { 12 namespace content {
13 class AppCacheServiceImpl; 13 class AppCacheServiceImpl;
14 } 14 }
15 15
16 namespace content { 16 namespace content {
17 17
18 // Helper class for inserting data into a ChromeAppCacheService and reading it 18 // Helper class for inserting data into a ChromeAppCacheService and reading it
19 // back. 19 // back.
20 class AppCacheTestHelper : public appcache::AppCacheStorage::Delegate { 20 class AppCacheTestHelper : public AppCacheStorage::Delegate {
21 public: 21 public:
22 AppCacheTestHelper(); 22 AppCacheTestHelper();
23 virtual ~AppCacheTestHelper(); 23 virtual ~AppCacheTestHelper();
24 void AddGroupAndCache(appcache::AppCacheServiceImpl* appcache_service, 24 void AddGroupAndCache(AppCacheServiceImpl* appcache_service,
25 const GURL& manifest_url); 25 const GURL& manifest_url);
26 26
27 void GetOriginsWithCaches(appcache::AppCacheServiceImpl* appcache_service, 27 void GetOriginsWithCaches(AppCacheServiceImpl* appcache_service,
28 std::set<GURL>* origins); 28 std::set<GURL>* origins);
29 private: 29 private:
30 virtual void OnGroupAndNewestCacheStored( 30 virtual void OnGroupAndNewestCacheStored(
31 appcache::AppCacheGroup* group, 31 AppCacheGroup* group,
32 appcache::AppCache* newest_cache, 32 AppCache* newest_cache,
33 bool success, 33 bool success,
34 bool would_exceed_quota) OVERRIDE; 34 bool would_exceed_quota) OVERRIDE;
35 void OnGotAppCacheInfo(int rv); 35 void OnGotAppCacheInfo(int rv);
36 36
37 int group_id_; 37 int group_id_;
38 int appcache_id_; 38 int appcache_id_;
39 int response_id_; 39 int response_id_;
40 scoped_refptr<appcache::AppCacheInfoCollection> appcache_info_; 40 scoped_refptr<AppCacheInfoCollection> appcache_info_;
41 std::set<GURL>* origins_; // not owned 41 std::set<GURL>* origins_; // not owned
42 42
43 DISALLOW_COPY_AND_ASSIGN(AppCacheTestHelper); 43 DISALLOW_COPY_AND_ASSIGN(AppCacheTestHelper);
44 }; 44 };
45 45
46 } // namespace content 46 } // namespace content
47 47
48 #endif // CONTENT_TEST_APPCACHE_TEST_HELPER_H_ 48 #endif // CONTENT_TEST_APPCACHE_TEST_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698