ExtensionSyncService: listen for relevant changes instead of being explicitly called...
[chromium-blink-merge.git] / chrome / browser / browsing_data / mock_browsing_data_quota_helper.h
blobb3fea6c238e73400817052940b89a696a78c3bd9
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 #ifndef CHROME_BROWSER_BROWSING_DATA_MOCK_BROWSING_DATA_QUOTA_HELPER_H_
6 #define CHROME_BROWSER_BROWSING_DATA_MOCK_BROWSING_DATA_QUOTA_HELPER_H_
8 #include <list>
9 #include <string>
11 #include "base/compiler_specific.h"
12 #include "chrome/browser/browsing_data/browsing_data_quota_helper.h"
14 class MockBrowsingDataQuotaHelper : public BrowsingDataQuotaHelper {
15 public:
16 explicit MockBrowsingDataQuotaHelper(Profile* profile);
18 void StartFetching(const FetchResultCallback& callback) override;
19 void RevokeHostQuota(const std::string& host) override;
21 void AddHost(const std::string& host,
22 int64 temporary_usage,
23 int64 persistent_usage,
24 int64 syncable_usage);
25 void AddQuotaSamples();
26 void Notify();
28 private:
29 ~MockBrowsingDataQuotaHelper() override;
31 FetchResultCallback callback_;
32 std::list<QuotaInfo> response_;
34 DISALLOW_COPY_AND_ASSIGN(MockBrowsingDataQuotaHelper);
37 #endif // CHROME_BROWSER_BROWSING_DATA_MOCK_BROWSING_DATA_QUOTA_HELPER_H_