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

Side by Side Diff: webkit/appcache/mock_appcache_storage_unittest.cc

Issue 8343018: More groundwork for flat file based response storage. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "base/message_loop.h" 5 #include "base/message_loop.h"
6 #include "testing/gtest/include/gtest/gtest.h" 6 #include "testing/gtest/include/gtest/gtest.h"
7 #include "webkit/appcache/appcache.h" 7 #include "webkit/appcache/appcache.h"
8 #include "webkit/appcache/appcache_group.h" 8 #include "webkit/appcache/appcache_group.h"
9 #include "webkit/appcache/appcache_response.h" 9 #include "webkit/appcache/appcache_response.h"
10 #include "webkit/appcache/appcache_storage.h" 10 #include "webkit/appcache/appcache_storage.h"
(...skipping 28 matching lines...) Expand all
39 } 39 }
40 40
41 void OnGroupMadeObsolete(AppCacheGroup* group, bool success) { 41 void OnGroupMadeObsolete(AppCacheGroup* group, bool success) {
42 obsoleted_group_ = group; 42 obsoleted_group_ = group;
43 obsoleted_success_ = success; 43 obsoleted_success_ = success;
44 } 44 }
45 45
46 void OnMainResponseFound(const GURL& url, const AppCacheEntry& entry, 46 void OnMainResponseFound(const GURL& url, const AppCacheEntry& entry,
47 const GURL& fallback_url, 47 const GURL& fallback_url,
48 const AppCacheEntry& fallback_entry, 48 const AppCacheEntry& fallback_entry,
49 int64 cache_id, const GURL& manifest_url) { 49 int64 cache_id, int64 group_id,
50 const GURL& manifest_url) {
50 found_url_ = url; 51 found_url_ = url;
51 found_entry_ = entry; 52 found_entry_ = entry;
52 found_fallback_url_ = fallback_url; 53 found_fallback_url_ = fallback_url;
53 found_fallback_entry_ = fallback_entry; 54 found_fallback_entry_ = fallback_entry;
54 found_cache_id_ = cache_id; 55 found_cache_id_ = cache_id;
55 found_manifest_url_ = manifest_url; 56 found_manifest_url_ = manifest_url;
56 } 57 }
57 58
58 scoped_refptr<AppCache> loaded_cache_; 59 scoped_refptr<AppCache> loaded_cache_;
59 int64 loaded_cache_id_; 60 int64 loaded_cache_id_;
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 EXPECT_EQ(kNoCacheId, delegate.found_cache_id_); 611 EXPECT_EQ(kNoCacheId, delegate.found_cache_id_);
611 EXPECT_EQ(kNoResponseId, delegate.found_entry_.response_id()); 612 EXPECT_EQ(kNoResponseId, delegate.found_entry_.response_id());
612 EXPECT_EQ(kNoResponseId, delegate.found_fallback_entry_.response_id()); 613 EXPECT_EQ(kNoResponseId, delegate.found_fallback_entry_.response_id());
613 EXPECT_TRUE(delegate.found_fallback_url_.is_empty()); 614 EXPECT_TRUE(delegate.found_fallback_url_.is_empty());
614 EXPECT_EQ(0, delegate.found_entry_.types()); 615 EXPECT_EQ(0, delegate.found_entry_.types());
615 EXPECT_EQ(0, delegate.found_fallback_entry_.types()); 616 EXPECT_EQ(0, delegate.found_fallback_entry_.types());
616 } 617 }
617 618
618 } // namespace appcache 619 } // namespace appcache
619 620
OLDNEW
« no previous file with comments | « webkit/appcache/mock_appcache_storage.cc ('k') | webkit/appcache/view_appcache_internals_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698