Avi Drissman | e4622aa | 2022-09-08 20:36:06 | [diff] [blame] | 1 | // Copyright 2012 The Chromium Authors |
[email protected] | df6c419 | 2012-03-02 23:13:40 | [diff] [blame] | 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 | |||||
Sebastien Marchand | 0f56c3cd | 2018-10-05 15:29:27 | [diff] [blame] | 8 | #include "base/system/system_monitor.h" |
[email protected] | df6c419 | 2012-03-02 23:13:40 | [diff] [blame] | 9 | #include "testing/gmock/include/gmock/gmock.h" |
10 | |||||
[email protected] | df6c419 | 2012-03-02 23:13:40 | [diff] [blame] | 11 | namespace base { |
12 | |||||
13 | class MockDevicesChangedObserver | ||||
[email protected] | 614a5ff | 2012-07-21 01:52:26 | [diff] [blame] | 14 | : public base::SystemMonitor::DevicesChangedObserver { |
[email protected] | df6c419 | 2012-03-02 23:13:40 | [diff] [blame] | 15 | public: |
16 | MockDevicesChangedObserver(); | ||||
Peter Boström | 7319bbd | 2021-09-15 22:59:38 | [diff] [blame] | 17 | |
18 | MockDevicesChangedObserver(const MockDevicesChangedObserver&) = delete; | ||||
19 | MockDevicesChangedObserver& operator=(const MockDevicesChangedObserver&) = | ||||
20 | delete; | ||||
21 | |||||
Daniel Cheng | c8f0b40 | 2018-04-27 17:28:20 | [diff] [blame] | 22 | ~MockDevicesChangedObserver() override; |
[email protected] | df6c419 | 2012-03-02 23:13:40 | [diff] [blame] | 23 | |
[email protected] | 515be83 | 2012-07-31 01:16:35 | [diff] [blame] | 24 | MOCK_METHOD1(OnDevicesChanged, |
25 | void(base::SystemMonitor::DeviceType device_type)); | ||||
[email protected] | df6c419 | 2012-03-02 23:13:40 | [diff] [blame] | 26 | }; |
27 | |||||
28 | } // namespace base | ||||
29 | |||||
30 | #endif // BASE_TEST_MOCK_DEVICES_CHANGED_OBSERVER_H_ |