Fix build break
[chromium-blink-merge.git] / chrome / browser / storage_monitor / test_storage_monitor.h
bloba45bf95329f7fdaa830d1b21da0b83ba0b986021
1 // Copyright (c) 2013 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_STORAGE_MONITOR_TEST_STORAGE_MONITOR_H_
6 #define CHROME_BROWSER_STORAGE_MONITOR_TEST_STORAGE_MONITOR_H_
8 #include "chrome/browser/storage_monitor/storage_monitor.h"
10 namespace chrome {
11 namespace test {
13 class TestStorageMonitor : public chrome::StorageMonitor {
14 public:
15 TestStorageMonitor();
16 virtual ~TestStorageMonitor();
18 // Will create a new testing implementation for browser tests,
19 // taking care to deal with the existing singleton correctly.
20 static TestStorageMonitor* CreateForBrowserTests();
22 virtual bool GetStorageInfoForPath(
23 const base::FilePath& path,
24 StorageInfo* device_info) const OVERRIDE;
26 #if defined(OS_WIN)
27 virtual bool GetMTPStorageInfoFromDeviceId(
28 const std::string& storage_device_id,
29 string16* device_location,
30 string16* storage_object_id) const OVERRIDE;
31 #endif
33 virtual Receiver* receiver() const OVERRIDE;
35 virtual void EjectDevice(
36 const std::string& device_id,
37 base::Callback<void(StorageMonitor::EjectStatus)> callback)
38 OVERRIDE;
40 const std::string& ejected_device() const { return ejected_device_; }
42 private:
43 std::string ejected_device_;
46 } // namespace test
47 } // namespace chrome
49 #endif // CHROME_BROWSER_STORAGE_MONITOR_TEST_STORAGE_MONITOR_H_