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_FLASH_LSO_HELPER_H_
6 #define CHROME_BROWSER_BROWSING_DATA_MOCK_BROWSING_DATA_FLASH_LSO_HELPER_H_
11 #include "base/callback.h"
12 #include "chrome/browser/browsing_data/browsing_data_flash_lso_helper.h"
14 class MockBrowsingDataFlashLSOHelper
: public BrowsingDataFlashLSOHelper
{
16 explicit MockBrowsingDataFlashLSOHelper(
17 content::BrowserContext
* browser_context
);
19 // BrowsingDataFlashLSOHelper implementation:
20 void StartFetching(const GetSitesWithFlashDataCallback
& callback
) override
;
21 void DeleteFlashLSOsForSite(const std::string
& site
) override
;
23 // Adds a domain sample.
24 void AddFlashLSODomain(const std::string
& domain
);
26 // Notifies the callback.
29 // Returns true if the domain list is empty.
33 ~MockBrowsingDataFlashLSOHelper() override
;
35 GetSitesWithFlashDataCallback callback_
;
37 std::vector
<std::string
> domains_
;
39 DISALLOW_COPY_AND_ASSIGN(MockBrowsingDataFlashLSOHelper
);
42 #endif // CHROME_BROWSER_BROWSING_DATA_MOCK_BROWSING_DATA_FLASH_LSO_HELPER_H_