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

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

Issue 10780023: Change base::SystemMonitor's media device functions to take a type and string16 instead of a FilePa… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix win Created 8 years, 5 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BASE_TEST_MOCK_DEVICES_CHANGED_OBSERVER_H_ 5 #ifndef BASE_TEST_MOCK_DEVICES_CHANGED_OBSERVER_H_
6 #define BASE_TEST_MOCK_DEVICES_CHANGED_OBSERVER_H_ 6 #define BASE_TEST_MOCK_DEVICES_CHANGED_OBSERVER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/system_monitor/system_monitor.h" 10 #include "base/system_monitor/system_monitor.h"
11 #include "testing/gmock/include/gmock/gmock.h" 11 #include "testing/gmock/include/gmock/gmock.h"
12 12
13 class FilePath; 13 class FilePath;
14 14
15 namespace base { 15 namespace base {
16 16
17 class MockDevicesChangedObserver 17 class MockDevicesChangedObserver
18 : public base::SystemMonitor::DevicesChangedObserver { 18 : public base::SystemMonitor::DevicesChangedObserver {
19 public: 19 public:
20 MockDevicesChangedObserver(); 20 MockDevicesChangedObserver();
21 ~MockDevicesChangedObserver(); 21 ~MockDevicesChangedObserver();
22 22
23 MOCK_METHOD0(OnDevicesChanged, void()); 23 MOCK_METHOD0(OnDevicesChanged, void());
24 MOCK_METHOD3(OnMediaDeviceAttached, 24 MOCK_METHOD4(OnMediaDeviceAttached,
25 void(const base::SystemMonitor::DeviceIdType& id, 25 void(const base::SystemMonitor::DeviceIdType& id,
26 const std::string& name, 26 const std::string& name,
27 const FilePath& path)); 27 base::SystemMonitor::MediaDeviceType type,
28 const string16& data));
28 MOCK_METHOD1(OnMediaDeviceDetached, 29 MOCK_METHOD1(OnMediaDeviceDetached,
29 void(const base::SystemMonitor::DeviceIdType& id)); 30 void(const base::SystemMonitor::DeviceIdType& id));
30 31
31 DISALLOW_COPY_AND_ASSIGN(MockDevicesChangedObserver); 32 DISALLOW_COPY_AND_ASSIGN(MockDevicesChangedObserver);
32 }; 33 };
33 34
34 } // namespace base 35 } // namespace base
35 36
36 #endif // BASE_TEST_MOCK_DEVICES_CHANGED_OBSERVER_H_ 37 #endif // BASE_TEST_MOCK_DEVICES_CHANGED_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698