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

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

Issue 1542163002: Switch to standard integer types in device/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: win Created 5 years 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "device/bluetooth/test/mock_bluetooth_gatt_characteristic.h" 5 #include "device/bluetooth/test/mock_bluetooth_gatt_characteristic.h"
6 6
7 #include "device/bluetooth/test/mock_bluetooth_gatt_service.h" 7 #include "device/bluetooth/test/mock_bluetooth_gatt_service.h"
8 8
9 using testing::Return; 9 using testing::Return;
10 using testing::ReturnRefOfCopy; 10 using testing::ReturnRefOfCopy;
11 using testing::_; 11 using testing::_;
12 12
13 namespace device { 13 namespace device {
14 14
15 MockBluetoothGattCharacteristic::MockBluetoothGattCharacteristic( 15 MockBluetoothGattCharacteristic::MockBluetoothGattCharacteristic(
16 MockBluetoothGattService* service, 16 MockBluetoothGattService* service,
17 const std::string& identifier, 17 const std::string& identifier,
18 const BluetoothUUID& uuid, 18 const BluetoothUUID& uuid,
19 bool is_local, 19 bool is_local,
20 Properties properties, 20 Properties properties,
21 Permissions permissions) { 21 Permissions permissions) {
22 ON_CALL(*this, GetIdentifier()).WillByDefault(Return(identifier)); 22 ON_CALL(*this, GetIdentifier()).WillByDefault(Return(identifier));
23 ON_CALL(*this, GetUUID()).WillByDefault(Return(uuid)); 23 ON_CALL(*this, GetUUID()).WillByDefault(Return(uuid));
24 ON_CALL(*this, IsLocal()).WillByDefault(Return(is_local)); 24 ON_CALL(*this, IsLocal()).WillByDefault(Return(is_local));
25 ON_CALL(*this, GetValue()) 25 ON_CALL(*this, GetValue())
26 .WillByDefault(ReturnRefOfCopy(std::vector<uint8>())); 26 .WillByDefault(ReturnRefOfCopy(std::vector<uint8_t>()));
27 ON_CALL(*this, GetService()).WillByDefault(Return(service)); 27 ON_CALL(*this, GetService()).WillByDefault(Return(service));
28 ON_CALL(*this, GetProperties()).WillByDefault(Return(properties)); 28 ON_CALL(*this, GetProperties()).WillByDefault(Return(properties));
29 ON_CALL(*this, GetPermissions()).WillByDefault(Return(permissions)); 29 ON_CALL(*this, GetPermissions()).WillByDefault(Return(permissions));
30 ON_CALL(*this, IsNotifying()).WillByDefault(Return(false)); 30 ON_CALL(*this, IsNotifying()).WillByDefault(Return(false));
31 ON_CALL(*this, GetDescriptors()) 31 ON_CALL(*this, GetDescriptors())
32 .WillByDefault(Return(std::vector<BluetoothGattDescriptor*>())); 32 .WillByDefault(Return(std::vector<BluetoothGattDescriptor*>()));
33 } 33 }
34 34
35 MockBluetoothGattCharacteristic::~MockBluetoothGattCharacteristic() { 35 MockBluetoothGattCharacteristic::~MockBluetoothGattCharacteristic() {
36 } 36 }
37 37
38 } // namespace device 38 } // namespace device
OLDNEW
« no previous file with comments | « device/bluetooth/test/mock_bluetooth_gatt_characteristic.h ('k') | device/bluetooth/test/mock_bluetooth_gatt_descriptor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698