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

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

Issue 10829384: SystemMonitor: Pull device type into the device id (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comment Created 8 years, 4 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 namespace base { 13 namespace base {
14 14
15 class MockDevicesChangedObserver 15 class MockDevicesChangedObserver
16 : public base::SystemMonitor::DevicesChangedObserver { 16 : public base::SystemMonitor::DevicesChangedObserver {
17 public: 17 public:
18 MockDevicesChangedObserver(); 18 MockDevicesChangedObserver();
19 ~MockDevicesChangedObserver(); 19 ~MockDevicesChangedObserver();
20 20
21 MOCK_METHOD1(OnDevicesChanged, 21 MOCK_METHOD1(OnDevicesChanged,
22 void(base::SystemMonitor::DeviceType device_type)); 22 void(base::SystemMonitor::DeviceType device_type));
23 MOCK_METHOD4(OnMediaDeviceAttached, 23 MOCK_METHOD3(OnMediaDeviceAttached,
24 void(const std::string& id, 24 void(const std::string& id,
25 const string16& name, 25 const string16& name,
26 base::SystemMonitor::MediaDeviceType type,
27 const FilePath::StringType& location)); 26 const FilePath::StringType& location));
28 MOCK_METHOD1(OnMediaDeviceDetached, void(const std::string& id)); 27 MOCK_METHOD1(OnMediaDeviceDetached, void(const std::string& id));
29 28
30 DISALLOW_COPY_AND_ASSIGN(MockDevicesChangedObserver); 29 DISALLOW_COPY_AND_ASSIGN(MockDevicesChangedObserver);
31 }; 30 };
32 31
33 } // namespace base 32 } // namespace base
34 33
35 #endif // BASE_TEST_MOCK_DEVICES_CHANGED_OBSERVER_H_ 34 #endif // BASE_TEST_MOCK_DEVICES_CHANGED_OBSERVER_H_
OLDNEW
« no previous file with comments | « base/system_monitor/system_monitor_unittest.cc ('k') | chrome/browser/intents/device_attached_intent_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698