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 class TestStorageMonitor : public StorageMonitor { |
13 namespace test { | |
14 | |
15 class TestStorageMonitor : public chrome::StorageMonitor { | |
16 public: | 13 public: |
17 TestStorageMonitor(); | 14 TestStorageMonitor(); |
18 virtual ~TestStorageMonitor(); | 15 virtual ~TestStorageMonitor(); |
19 | 16 |
20 virtual void Init() OVERRIDE; | 17 virtual void Init() OVERRIDE; |
21 | 18 |
22 void MarkInitialized(); | 19 void MarkInitialized(); |
23 | 20 |
24 // Create and initialize a new TestStorageMonitor and install it | 21 // Create and initialize a new TestStorageMonitor and install it |
25 // in the TestingBrowserProcess. The TestingBrowserProcess owns the created | 22 // in the TestingBrowserProcess. The TestingBrowserProcess owns the created |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 | 70 |
74 // The last device to be ejected. | 71 // The last device to be ejected. |
75 std::string ejected_device_; | 72 std::string ejected_device_; |
76 | 73 |
77 #if defined(OS_LINUX) | 74 #if defined(OS_LINUX) |
78 scoped_ptr<device::MediaTransferProtocolManager> | 75 scoped_ptr<device::MediaTransferProtocolManager> |
79 media_transfer_protocol_manager_; | 76 media_transfer_protocol_manager_; |
80 #endif | 77 #endif |
81 }; | 78 }; |
82 | 79 |
83 } // namespace test | |
84 } // namespace chrome | |
85 | |
86 #endif // CHROME_BROWSER_STORAGE_MONITOR_TEST_STORAGE_MONITOR_H_ | 80 #endif // CHROME_BROWSER_STORAGE_MONITOR_TEST_STORAGE_MONITOR_H_ |
OLD | NEW |