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

Unified Diff: chrome/browser/chromeos/dbus/mock_bluetooth_adapter_client.h

Issue 8343069: chromeos: Add MockDBusThreadManager and mock clients. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add todo Created 9 years, 2 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: chrome/browser/chromeos/dbus/mock_bluetooth_adapter_client.h
diff --git a/chrome/browser/chromeos/dbus/mock_bluetooth_adapter_client.h b/chrome/browser/chromeos/dbus/mock_bluetooth_adapter_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..d8a12931b917a7ccbeac1f1ea04d4e94f9c5c439
--- /dev/null
+++ b/chrome/browser/chromeos/dbus/mock_bluetooth_adapter_client.h
@@ -0,0 +1,28 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_CHROMEOS_DBUS_MOCK_BLUETOOTH_ADAPTER_CLIENT_H_
+#define CHROME_BROWSER_CHROMEOS_DBUS_MOCK_BLUETOOTH_ADAPTER_CLIENT_H_
+
+#include <string>
+
+#include "chrome/browser/chromeos/dbus/bluetooth_adapter_client.h"
+#include "testing/gmock/include/gmock/gmock.h"
+
+namespace chromeos {
+
+class MockBluetoothAdapterClient : public BluetoothAdapterClient {
+ public:
+ MockBluetoothAdapterClient();
+ virtual ~MockBluetoothAdapterClient();
+
+ MOCK_METHOD2(AddObserver, void(Observer*, const std::string&));
+ MOCK_METHOD2(RemoveObserver, void(Observer*, const std::string&));
+ MOCK_METHOD1(StartDiscovery, void(const std::string&));
+ MOCK_METHOD1(StopDiscovery, void(const std::string&));
+};
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_DBUS_MOCK_BLUETOOTH_ADAPTER_CLIENT_H_

Powered by Google App Engine
This is Rietveld 408576698