blob: b937ad5891d6cc247aeba571d2af6931eedce94a [file] [log] [blame]
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_BROWSING_DATA_MOCK_BROWSING_DATA_QUOTA_HELPER_H_
#define CHROME_BROWSER_BROWSING_DATA_MOCK_BROWSING_DATA_QUOTA_HELPER_H_
#include <stdint.h>
#include <list>
#include <string>
#include "chrome/browser/browsing_data/browsing_data_quota_helper.h"
class MockBrowsingDataQuotaHelper : public BrowsingDataQuotaHelper {
public:
explicit MockBrowsingDataQuotaHelper(Profile* profile);
MockBrowsingDataQuotaHelper(const MockBrowsingDataQuotaHelper&) = delete;
MockBrowsingDataQuotaHelper& operator=(const MockBrowsingDataQuotaHelper&) =
delete;
void StartFetching(FetchResultCallback callback) override;
void RevokeHostQuota(const std::string& host) override;
void AddHost(const std::string& host,
int64_t temporary_usage,
int64_t persistent_usage,
int64_t syncable_usage);
void AddQuotaSamples();
void Notify();
private:
~MockBrowsingDataQuotaHelper() override;
FetchResultCallback callback_;
std::list<QuotaInfo> response_;
};
#endif // CHROME_BROWSER_BROWSING_DATA_MOCK_BROWSING_DATA_QUOTA_HELPER_H_