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

Unified Diff: chromeos/dbus/mock_bluetooth_input_client.h

Issue 10831360: bluetooth: Improve testability (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: also mock out ConnectSignals and ChangedReceive 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 side-by-side diff with in-line comments
Download patch
Index: chromeos/dbus/mock_bluetooth_input_client.h
diff --git a/chromeos/dbus/mock_bluetooth_input_client.h b/chromeos/dbus/mock_bluetooth_input_client.h
index afa438c4af9f6e32386d4ca7a1aab05c7623174e..d4a858e2352478721aed75f3bd3e9f98544c81e0 100644
--- a/chromeos/dbus/mock_bluetooth_input_client.h
+++ b/chromeos/dbus/mock_bluetooth_input_client.h
@@ -14,6 +14,20 @@ namespace chromeos {
class MockBluetoothInputClient : public BluetoothInputClient {
public:
+ struct Properties : public BluetoothInputClient::Properties {
+ Properties();
+ virtual ~Properties();
+
+ MOCK_METHOD0(ConnectSignals, void());
+
+ MOCK_METHOD2(Get, void(dbus::PropertyBase* property,
+ dbus::PropertySet::GetCallback callback));
+ MOCK_METHOD0(GetAll, void());
+ MOCK_METHOD2(Set, void(dbus::PropertyBase* property,
+ dbus::PropertySet::SetCallback callback));
+
+ MOCK_METHOD1(ChangedRecevied, void(dbus::Signal*));
+ };
MockBluetoothInputClient();
virtual ~MockBluetoothInputClient();

Powered by Google App Engine
This is Rietveld 408576698