Pipeline: Handle the case where Seek() is called after error happened.
[chromium-blink-merge.git] / base / test / mock_devices_changed_observer.h
blob3ada16b8d4e5e5a3bc1920313d2cb6f33ccc2700
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.
5 #ifndef BASE_TEST_MOCK_DEVICES_CHANGED_OBSERVER_H_
6 #define BASE_TEST_MOCK_DEVICES_CHANGED_OBSERVER_H_
8 #include <string>
10 #include "base/system_monitor/system_monitor.h"
11 #include "testing/gmock/include/gmock/gmock.h"
13 namespace base {
15 class MockDevicesChangedObserver
16 : public base::SystemMonitor::DevicesChangedObserver {
17 public:
18 MockDevicesChangedObserver();
19 ~MockDevicesChangedObserver();
21 MOCK_METHOD1(OnDevicesChanged,
22 void(base::SystemMonitor::DeviceType device_type));
24 DISALLOW_COPY_AND_ASSIGN(MockDevicesChangedObserver);
27 } // namespace base
29 #endif // BASE_TEST_MOCK_DEVICES_CHANGED_OBSERVER_H_