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

Side by Side Diff: device/bluetooth/test/mock_bluetooth_gatt_service.cc

Issue 256413003: chrome.bluetoothLowEnergy: Implement getService and getServices. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 6 years, 7 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
« no previous file with comments | « device/bluetooth/test/mock_bluetooth_gatt_service.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "device/bluetooth/test/mock_bluetooth_gatt_service.h"
6
7 #include "device/bluetooth/test/mock_bluetooth_device.h"
8
9 using testing::Return;
10 using testing::_;
11
12 namespace device {
13
14 MockBluetoothGattService::MockBluetoothGattService(
15 MockBluetoothDevice* device,
16 const std::string& identifier,
17 const BluetoothUUID& uuid,
18 bool is_primary,
19 bool is_local) {
20 ON_CALL(*this, GetIdentifier()).WillByDefault(Return(identifier));
21 ON_CALL(*this, GetUUID()).WillByDefault(Return(uuid));
22 ON_CALL(*this, IsLocal()).WillByDefault(Return(is_local));
23 ON_CALL(*this, IsPrimary()).WillByDefault(Return(is_primary));
24 ON_CALL(*this, GetDevice()).WillByDefault(Return(device));
25 ON_CALL(*this, GetCharacteristics())
26 .WillByDefault(Return(std::vector<BluetoothGattCharacteristic*>()));
27 ON_CALL(*this, GetIncludedServices())
28 .WillByDefault(Return(std::vector<BluetoothGattService*>()));
29 ON_CALL(*this, GetCharacteristic(_))
30 .WillByDefault(Return(static_cast<BluetoothGattCharacteristic*>(NULL)));
31 }
32
33 MockBluetoothGattService::~MockBluetoothGattService() {
34 }
35
36 } // namespace device
OLDNEW
« no previous file with comments | « device/bluetooth/test/mock_bluetooth_gatt_service.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698