[email protected] | df6c419 | 2012-03-02 23:13:40 | [diff] [blame] | 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 <string> | ||||
9 | |||||
10 | #include "base/system_monitor/system_monitor.h" | ||||
11 | #include "testing/gmock/include/gmock/gmock.h" | ||||
12 | |||||
[email protected] | df6c419 | 2012-03-02 23:13:40 | [diff] [blame] | 13 | namespace base { |
14 | |||||
15 | class MockDevicesChangedObserver | ||||
[email protected] | 614a5ff | 2012-07-21 01:52:26 | [diff] [blame] | 16 | : public base::SystemMonitor::DevicesChangedObserver { |
[email protected] | df6c419 | 2012-03-02 23:13:40 | [diff] [blame] | 17 | public: |
18 | MockDevicesChangedObserver(); | ||||
19 | ~MockDevicesChangedObserver(); | ||||
20 | |||||
[email protected] | 515be83 | 2012-07-31 01:16:35 | [diff] [blame^] | 21 | MOCK_METHOD1(OnDevicesChanged, |
22 | void(base::SystemMonitor::DeviceType device_type)); | ||||
[email protected] | 614a5ff | 2012-07-21 01:52:26 | [diff] [blame] | 23 | MOCK_METHOD4(OnMediaDeviceAttached, |
24 | void(const std::string& id, | ||||
25 | const string16& name, | ||||
26 | base::SystemMonitor::MediaDeviceType type, | ||||
27 | const FilePath::StringType& location)); | ||||
28 | MOCK_METHOD1(OnMediaDeviceDetached, void(const std::string& id)); | ||||
[email protected] | df6c419 | 2012-03-02 23:13:40 | [diff] [blame] | 29 | |
30 | DISALLOW_COPY_AND_ASSIGN(MockDevicesChangedObserver); | ||||
31 | }; | ||||
32 | |||||
33 | } // namespace base | ||||
34 | |||||
35 | #endif // BASE_TEST_MOCK_DEVICES_CHANGED_OBSERVER_H_ |