OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 #ifndef BASE_TEST_MOCK_DEVICES_CHANGED_OBSERVER_H_ |
| 6 #define BASE_TEST_MOCK_DEVICES_CHANGED_OBSERVER_H_ |
| 7 |
| 8 #include "base/system_monitor/system_monitor.h" |
| 9 #include "testing/gmock/include/gmock/gmock.h" |
| 10 |
| 11 class FilePath; |
| 12 |
| 13 namespace base { |
| 14 |
| 15 class MockDevicesChangedObserver : |
| 16 public base::SystemMonitor::DevicesChangedObserver { |
| 17 public: |
| 18 MockDevicesChangedObserver(); |
| 19 ~MockDevicesChangedObserver(); |
| 20 |
| 21 MOCK_METHOD0(OnDevicesChanged, void()); |
| 22 MOCK_METHOD3(OnMediaDeviceAttached, |
| 23 void(const base::SystemMonitor::DeviceIdType& id, |
| 24 const std::string& name, |
| 25 const FilePath& path)); |
| 26 MOCK_METHOD1(OnMediaDeviceDetached, |
| 27 void(const base::SystemMonitor::DeviceIdType& id)); |
| 28 |
| 29 DISALLOW_COPY_AND_ASSIGN(MockDevicesChangedObserver); |
| 30 }; |
| 31 |
| 32 } // namespace base |
| 33 |
| 34 #endif // BASE_TEST_MOCK_DEVICES_CHANGED_OBSERVER_H_ |
OLD | NEW |