chrome: bluetooth: hook up the AdapterAdded signal
[chromium-blink-merge.git] / chrome / browser / mock_browsing_data_quota_helper.h
blob10dd05e968c29e27b30f3b9b93e5fdfbc1eb7859
1 // Copyright (c) 2011 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_MOCK_BROWSING_DATA_QUOTA_HELPER_H_
6 #define CHROME_BROWSER_MOCK_BROWSING_DATA_QUOTA_HELPER_H_
7 #pragma once
9 #include <list>
10 #include <string>
12 #include "base/compiler_specific.h"
13 #include "chrome/browser/browsing_data_quota_helper.h"
15 class MockBrowsingDataQuotaHelper : public BrowsingDataQuotaHelper {
16 public:
17 explicit MockBrowsingDataQuotaHelper(Profile* profile);
19 virtual void StartFetching(const FetchResultCallback& callback) OVERRIDE;
20 virtual void CancelNotification() OVERRIDE;
21 virtual void RevokeHostQuota(const std::string& host) OVERRIDE;
23 void AddHost(const std::string& host,
24 int64 temporary_usage,
25 int64 persistent_usage);
26 void AddQuotaSamples();
27 void Notify();
29 private:
30 virtual ~MockBrowsingDataQuotaHelper();
32 FetchResultCallback callback_;
33 std::list<QuotaInfo> response_;
34 Profile* profile_;
37 #endif // CHROME_BROWSER_MOCK_BROWSING_DATA_QUOTA_HELPER_H_