OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <stack> | 5 #include <stack> |
6 | 6 |
7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
8 #include "base/thread.h" | 8 #include "base/thread.h" |
9 #include "base/waitable_event.h" | 9 #include "base/waitable_event.h" |
10 #include "net/base/net_errors.h" | 10 #include "net/base/net_errors.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 } | 99 } |
100 | 100 |
101 void OnGroupMadeObsolete(AppCacheGroup* group, bool success) { | 101 void OnGroupMadeObsolete(AppCacheGroup* group, bool success) { |
102 obsoleted_group_ = group; | 102 obsoleted_group_ = group; |
103 obsoleted_success_ = success; | 103 obsoleted_success_ = success; |
104 test_->ScheduleNextTask(); | 104 test_->ScheduleNextTask(); |
105 } | 105 } |
106 | 106 |
107 void OnMainResponseFound(const GURL& url, const AppCacheEntry& entry, | 107 void OnMainResponseFound(const GURL& url, const AppCacheEntry& entry, |
108 const AppCacheEntry& fallback_entry, | 108 const AppCacheEntry& fallback_entry, |
109 int64 cache_id, const GURL& manifest_url) { | 109 int64 cache_id, const GURL& manifest_url, |
| 110 bool was_blocked_by_policy) { |
110 found_url_ = url; | 111 found_url_ = url; |
111 found_entry_ = entry; | 112 found_entry_ = entry; |
112 found_fallback_entry_ = fallback_entry; | 113 found_fallback_entry_ = fallback_entry; |
113 found_cache_id_ = cache_id; | 114 found_cache_id_ = cache_id; |
114 found_manifest_url_ = manifest_url; | 115 found_manifest_url_ = manifest_url; |
115 test_->ScheduleNextTask(); | 116 test_->ScheduleNextTask(); |
116 } | 117 } |
117 | 118 |
118 scoped_refptr<AppCache> loaded_cache_; | 119 scoped_refptr<AppCache> loaded_cache_; |
119 int64 loaded_cache_id_; | 120 int64 loaded_cache_id_; |
(...skipping 934 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1054 | 1055 |
1055 TEST_F(AppCacheStorageImplTest, FindMainResponseExclusionsInWorkingSet) { | 1056 TEST_F(AppCacheStorageImplTest, FindMainResponseExclusionsInWorkingSet) { |
1056 RunTestOnIOThread( | 1057 RunTestOnIOThread( |
1057 &AppCacheStorageImplTest::FindMainResponseExclusionsInWorkingSet); | 1058 &AppCacheStorageImplTest::FindMainResponseExclusionsInWorkingSet); |
1058 } | 1059 } |
1059 | 1060 |
1060 // That's all folks! | 1061 // That's all folks! |
1061 | 1062 |
1062 } // namespace appcache | 1063 } // namespace appcache |
1063 | 1064 |
OLD | NEW |