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
3 // found in the LICENSE file.
5 #include "chrome/browser/browsing_data/mock_browsing_data_appcache_helper.h"
7 #include "base/callback.h"
8 #include "testing/gtest/include/gtest/gtest.h"
10 MockBrowsingDataAppCacheHelper::MockBrowsingDataAppCacheHelper(
11 content::BrowserContext
* browser_context
)
12 : BrowsingDataAppCacheHelper(browser_context
) {
15 MockBrowsingDataAppCacheHelper::~MockBrowsingDataAppCacheHelper() {
18 void MockBrowsingDataAppCacheHelper::StartFetching(
19 const FetchCallback
& completion_callback
) {
20 ASSERT_FALSE(completion_callback
.is_null());
21 ASSERT_TRUE(completion_callback_
.is_null());
22 completion_callback_
= completion_callback
;
25 void MockBrowsingDataAppCacheHelper::DeleteAppCacheGroup(
26 const GURL
& manifest_url
) {