Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(178)

Side by Side Diff: base/system_monitor/mock_devices_changed_observer.h

Issue 9363008: Add Media device notification to SystemMonitor and Mac impl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Arg! add missing file Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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_SYSTEM_MONITOR_MOCK_DEVICES_CHANGED_OBSERVER_H_
6 #define BASE_SYSTEM_MONITOR_MOCK_DEVICES_CHANGED_OBSERVER_H_
7
8 #include "base/system_monitor/system_monitor.h"
9 #include "testing/gmock/include/gmock/gmock.h"
10
11 class FilePath;
12
13 namespace base {
14 namespace test {
15
16 class MockDevicesChangedObserver :
17 public base::SystemMonitor::DevicesChangedObserver {
18 public:
19 MockDevicesChangedObserver();
20 ~MockDevicesChangedObserver();
21
22 MOCK_METHOD0(OnDevicesChanged, void());
23 MOCK_METHOD3(OnMediaDeviceAttached,
24 void(const base::SystemMonitor::DeviceIdType& id,
25 const std::string& name,
26 const FilePath& path));
27 MOCK_METHOD1(OnMediaDeviceDetached,
28 void(const base::SystemMonitor::DeviceIdType& id));
29
30 DISALLOW_COPY_AND_ASSIGN(MockDevicesChangedObserver);
31 };
32
33 } // namespace test
34 } // namespace base
35
36 #endif // BASE_SYSTEM_MONITOR_MOCK_DEVICES_CHANGED_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698