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

Unified Diff: device/bluetooth/test/mock_bluetooth_gatt_connection.cc

Issue 333983003: device/bluetooth: Implement BluetoothGattConnection on Chrome OS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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
« no previous file with comments | « device/bluetooth/test/mock_bluetooth_gatt_connection.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/test/mock_bluetooth_gatt_connection.cc
diff --git a/device/bluetooth/test/mock_bluetooth_gatt_connection.cc b/device/bluetooth/test/mock_bluetooth_gatt_connection.cc
new file mode 100644
index 0000000000000000000000000000000000000000..7f06a9f1bf705ed6a7b6a8948bcd00e727de9af1
--- /dev/null
+++ b/device/bluetooth/test/mock_bluetooth_gatt_connection.cc
@@ -0,0 +1,19 @@
+// Copyright 2014 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.
+
+#include "device/bluetooth/test/mock_bluetooth_gatt_connection.h"
+
+using ::testing::Return;
+
+namespace device {
+
+MockBluetoothGattConnection::MockBluetoothGattConnection(
+ const std::string& device_address) {
+ ON_CALL(*this, GetDeviceAddress()).WillByDefault(Return(device_address));
+ ON_CALL(*this, IsConnected()).WillByDefault(Return(true));
+}
+
+MockBluetoothGattConnection::~MockBluetoothGattConnection() {}
+
+} // namespace device
« no previous file with comments | « device/bluetooth/test/mock_bluetooth_gatt_connection.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698