blob: 858c3615a1807ebabe4e5eaf2ba462d943238905 [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 "base/macros.h"
#include "chrome/browser/browsing_data/browsing_data_quota_helper.h"
class MockBrowsingDataQuotaHelper : public BrowsingDataQuotaHelper {
public:
explicit MockBrowsingDataQuotaHelper(Profile* profile);
void StartFetching(const 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_;
DISALLOW_COPY_AND_ASSIGN(MockBrowsingDataQuotaHelper);
};
#endif // CHROME_BROWSER_BROWSING_DATA_MOCK_BROWSING_DATA_QUOTA_HELPER_H_