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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: base/test/mock_devices_changed_observer.h
===================================================================
--- base/test/mock_devices_changed_observer.h (revision 147551)
+++ base/test/mock_devices_changed_observer.h (working copy)
@@ -10,23 +10,21 @@
#include "base/system_monitor/system_monitor.h"
#include "testing/gmock/include/gmock/gmock.h"
-class FilePath;
-
namespace base {
class MockDevicesChangedObserver
- : public base::SystemMonitor::DevicesChangedObserver {
+ : public base::SystemMonitor::DevicesChangedObserver {
public:
MockDevicesChangedObserver();
~MockDevicesChangedObserver();
MOCK_METHOD0(OnDevicesChanged, void());
- MOCK_METHOD3(OnMediaDeviceAttached,
- void(const base::SystemMonitor::DeviceIdType& id,
- const std::string& name,
- const FilePath& path));
- MOCK_METHOD1(OnMediaDeviceDetached,
- void(const base::SystemMonitor::DeviceIdType& id));
+ MOCK_METHOD4(OnMediaDeviceAttached,
+ void(const std::string& id,
+ const string16& name,
+ base::SystemMonitor::MediaDeviceType type,
+ const FilePath::StringType& location));
+ MOCK_METHOD1(OnMediaDeviceDetached, void(const std::string& id));
DISALLOW_COPY_AND_ASSIGN(MockDevicesChangedObserver);
};

Powered by Google App Engine
This is Rietveld 408576698