| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // This file contains a subclass of PortableDeviceWatcherWin to expose some | 5 // This file contains a subclass of PortableDeviceWatcherWin to expose some |
| 6 // functionality for testing. | 6 // functionality for testing. |
| 7 | 7 |
| 8 #ifndef COMPONENTS_STORAGE_MONITOR_TEST_PORTABLE_DEVICE_WATCHER_WIN_H_ | 8 #ifndef COMPONENTS_STORAGE_MONITOR_TEST_PORTABLE_DEVICE_WATCHER_WIN_H_ |
| 9 #define COMPONENTS_STORAGE_MONITOR_TEST_PORTABLE_DEVICE_WATCHER_WIN_H_ | 9 #define COMPONENTS_STORAGE_MONITOR_TEST_PORTABLE_DEVICE_WATCHER_WIN_H_ |
| 10 | 10 |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "base/macros.h" |
| 13 #include "base/strings/string16.h" | 14 #include "base/strings/string16.h" |
| 14 #include "components/storage_monitor/portable_device_watcher_win.h" | 15 #include "components/storage_monitor/portable_device_watcher_win.h" |
| 15 | 16 |
| 16 namespace storage_monitor { | 17 namespace storage_monitor { |
| 17 | 18 |
| 18 class TestPortableDeviceWatcherWin : public PortableDeviceWatcherWin { | 19 class TestPortableDeviceWatcherWin : public PortableDeviceWatcherWin { |
| 19 public: | 20 public: |
| 20 // MTP device PnP identifiers. | 21 // MTP device PnP identifiers. |
| 21 static const base::char16 kMTPDeviceWithMultipleStorages[]; | 22 static const base::char16 kMTPDeviceWithMultipleStorages[]; |
| 22 static const base::char16 kMTPDeviceWithInvalidInfo[]; | 23 static const base::char16 kMTPDeviceWithInvalidInfo[]; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 // Set to true to get dummy storage details from | 71 // Set to true to get dummy storage details from |
| 71 // GetMTPStorageInfoFromDeviceId(). | 72 // GetMTPStorageInfoFromDeviceId(). |
| 72 bool use_dummy_mtp_storage_info_; | 73 bool use_dummy_mtp_storage_info_; |
| 73 | 74 |
| 74 DISALLOW_COPY_AND_ASSIGN(TestPortableDeviceWatcherWin); | 75 DISALLOW_COPY_AND_ASSIGN(TestPortableDeviceWatcherWin); |
| 75 }; | 76 }; |
| 76 | 77 |
| 77 } // namespace storage_monitor | 78 } // namespace storage_monitor |
| 78 | 79 |
| 79 #endif // COMPONENTS_STORAGE_MONITOR_TEST_PORTABLE_DEVICE_WATCHER_WIN_H_ | 80 #endif // COMPONENTS_STORAGE_MONITOR_TEST_PORTABLE_DEVICE_WATCHER_WIN_H_ |
| OLD | NEW |