OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/browsing_data/browsing_data_appcache_helper.h" | 5 #include "chrome/browser/browsing_data/browsing_data_appcache_helper.h" |
6 | 6 |
| 7 #include <set> |
| 8 |
7 #include "base/bind.h" | 9 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
9 #include "base/stl_util.h" | 11 #include "base/stl_util.h" |
10 #include "chrome/test/base/testing_profile.h" | 12 #include "chrome/test/base/testing_profile.h" |
11 #include "content/public/test/test_browser_thread_bundle.h" | 13 #include "content/public/test/test_browser_thread_bundle.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
13 | 15 |
14 namespace { | 16 namespace { |
15 class TestCompletionCallback { | 17 class TestCompletionCallback { |
16 public: | 18 public: |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 | 144 |
143 scoped_refptr<CannedBrowsingDataAppCacheHelper> helper( | 145 scoped_refptr<CannedBrowsingDataAppCacheHelper> helper( |
144 new CannedBrowsingDataAppCacheHelper(&profile)); | 146 new CannedBrowsingDataAppCacheHelper(&profile)); |
145 | 147 |
146 ASSERT_TRUE(helper->empty()); | 148 ASSERT_TRUE(helper->empty()); |
147 helper->AddAppCache(manifest1); | 149 helper->AddAppCache(manifest1); |
148 ASSERT_TRUE(helper->empty()); | 150 ASSERT_TRUE(helper->empty()); |
149 helper->AddAppCache(manifest2); | 151 helper->AddAppCache(manifest2); |
150 ASSERT_TRUE(helper->empty()); | 152 ASSERT_TRUE(helper->empty()); |
151 } | 153 } |
OLD | NEW |