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/mock_browsing_data_appcache_helper.h" | 5 #include "chrome/browser/browsing_data/mock_browsing_data_appcache_helper.h" |
6 | 6 |
7 #include "base/callback.h" | 7 #include "base/callback.h" |
8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
9 | 9 |
10 MockBrowsingDataAppCacheHelper::MockBrowsingDataAppCacheHelper( | 10 MockBrowsingDataAppCacheHelper::MockBrowsingDataAppCacheHelper( |
11 Profile* profile) | 11 content::BrowserContext* browser_context) |
12 : BrowsingDataAppCacheHelper(profile) { | 12 : BrowsingDataAppCacheHelper(browser_context) { |
13 } | 13 } |
14 | 14 |
15 MockBrowsingDataAppCacheHelper::~MockBrowsingDataAppCacheHelper() { | 15 MockBrowsingDataAppCacheHelper::~MockBrowsingDataAppCacheHelper() { |
16 } | 16 } |
17 | 17 |
18 void MockBrowsingDataAppCacheHelper::StartFetching( | 18 void MockBrowsingDataAppCacheHelper::StartFetching( |
19 const base::Closure& completion_callback) { | 19 const base::Closure& completion_callback) { |
20 ASSERT_FALSE(completion_callback.is_null()); | 20 ASSERT_FALSE(completion_callback.is_null()); |
21 ASSERT_TRUE(completion_callback_.is_null()); | 21 ASSERT_TRUE(completion_callback_.is_null()); |
22 completion_callback_ = completion_callback; | 22 completion_callback_ = completion_callback; |
23 } | 23 } |
24 | 24 |
25 void MockBrowsingDataAppCacheHelper::DeleteAppCacheGroup( | 25 void MockBrowsingDataAppCacheHelper::DeleteAppCacheGroup( |
26 const GURL& manifest_url) { | 26 const GURL& manifest_url) { |
27 } | 27 } |
OLD | NEW |