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/macros.h" 11 #include "base/system_monitor/system_monitor.h" 12 #include "testing/gmock/include/gmock/gmock.h" 13 14 namespace base { 15 16 class MockDevicesChangedObserver 17 : public base::SystemMonitor::DevicesChangedObserver { 18 public: 19 MockDevicesChangedObserver(); 20 ~MockDevicesChangedObserver() override; 21 22 MOCK_METHOD1(OnDevicesChanged, 23 void(base::SystemMonitor::DeviceType device_type)); 24 25 private: 26 DISALLOW_COPY_AND_ASSIGN(MockDevicesChangedObserver); 27 }; 28 29 } // namespace base 30 31 #endif // BASE_TEST_MOCK_DEVICES_CHANGED_OBSERVER_H_ 32