| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_STORAGE_MONITOR_TEST_STORAGE_MONITOR_H_ | 5 #ifndef CHROME_BROWSER_STORAGE_MONITOR_TEST_STORAGE_MONITOR_H_ |
| 6 #define CHROME_BROWSER_STORAGE_MONITOR_TEST_STORAGE_MONITOR_H_ | 6 #define CHROME_BROWSER_STORAGE_MONITOR_TEST_STORAGE_MONITOR_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "chrome/browser/storage_monitor/storage_monitor.h" | 10 #include "chrome/browser/storage_monitor/storage_monitor.h" |
| 11 | 11 |
| 12 namespace chrome { | 12 namespace chrome { |
| 13 namespace test { | 13 namespace test { |
| 14 | 14 |
| 15 class TestStorageMonitor : public chrome::StorageMonitor { | 15 class TestStorageMonitor : public chrome::StorageMonitor { |
| 16 public: | 16 public: |
| 17 TestStorageMonitor(); | 17 TestStorageMonitor(); |
| 18 virtual ~TestStorageMonitor(); | 18 virtual ~TestStorageMonitor(); |
| 19 | 19 |
| 20 virtual void Init() OVERRIDE; | 20 virtual void Init() OVERRIDE; |
| 21 | 21 |
| 22 virtual void MarkInitialized(); | 22 void MarkInitialized(); |
| 23 | 23 |
| 24 // Will create a new testing implementation for browser tests, | 24 // Will create a new testing implementation for browser tests, |
| 25 // taking care to deal with the existing singleton correctly. | 25 // taking care to deal with the existing singleton correctly. |
| 26 static TestStorageMonitor* CreateForBrowserTests(); | 26 static TestStorageMonitor* CreateForBrowserTests(); |
| 27 | 27 |
| 28 virtual bool GetStorageInfoForPath( | 28 virtual bool GetStorageInfoForPath( |
| 29 const base::FilePath& path, | 29 const base::FilePath& path, |
| 30 StorageInfo* device_info) const OVERRIDE; | 30 StorageInfo* device_info) const OVERRIDE; |
| 31 | 31 |
| 32 #if defined(OS_WIN) | 32 #if defined(OS_WIN) |
| (...skipping 25 matching lines...) Expand all Loading... |
| 58 #if defined(OS_LINUX) | 58 #if defined(OS_LINUX) |
| 59 scoped_ptr<device::MediaTransferProtocolManager> | 59 scoped_ptr<device::MediaTransferProtocolManager> |
| 60 media_transfer_protocol_manager_; | 60 media_transfer_protocol_manager_; |
| 61 #endif | 61 #endif |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 } // namespace test | 64 } // namespace test |
| 65 } // namespace chrome | 65 } // namespace chrome |
| 66 | 66 |
| 67 #endif // CHROME_BROWSER_STORAGE_MONITOR_TEST_STORAGE_MONITOR_H_ | 67 #endif // CHROME_BROWSER_STORAGE_MONITOR_TEST_STORAGE_MONITOR_H_ |
| OLD | NEW |