blob: 6e561eb5f23e302f6e6742a47a9b424653bd2717 [file] [log] [blame]
Avi Drissmane4622aa2022-09-08 20:36:061// Copyright 2012 The Chromium Authors
[email protected]df6c4192012-03-02 23:13:402// 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 Marchand0f56c3cd2018-10-05 15:29:278#include "base/system/system_monitor.h"
[email protected]df6c4192012-03-02 23:13:409#include "testing/gmock/include/gmock/gmock.h"
10
[email protected]df6c4192012-03-02 23:13:4011namespace base {
12
13class MockDevicesChangedObserver
[email protected]614a5ff2012-07-21 01:52:2614 : public base::SystemMonitor::DevicesChangedObserver {
[email protected]df6c4192012-03-02 23:13:4015 public:
16 MockDevicesChangedObserver();
Peter Boström7319bbd2021-09-15 22:59:3817
18 MockDevicesChangedObserver(const MockDevicesChangedObserver&) = delete;
19 MockDevicesChangedObserver& operator=(const MockDevicesChangedObserver&) =
20 delete;
21
Daniel Chengc8f0b402018-04-27 17:28:2022 ~MockDevicesChangedObserver() override;
[email protected]df6c4192012-03-02 23:13:4023
[email protected]515be832012-07-31 01:16:3524 MOCK_METHOD1(OnDevicesChanged,
25 void(base::SystemMonitor::DeviceType device_type));
[email protected]df6c4192012-03-02 23:13:4026};
27
28} // namespace base
29
30#endif // BASE_TEST_MOCK_DEVICES_CHANGED_OBSERVER_H_