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

Side by Side Diff: device/bluetooth/test/bluetooth_test_android.h

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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_ANDROID_H_ 5 #ifndef DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_ANDROID_H_
6 #define DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_ANDROID_H_ 6 #define DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_ANDROID_H_
7 7
8 #include <stdint.h>
9
8 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
9 #include "device/bluetooth/test/bluetooth_test.h" 11 #include "device/bluetooth/test/bluetooth_test.h"
10 12
11 namespace device { 13 namespace device {
12 14
13 class BluetoothAdapterAndroid; 15 class BluetoothAdapterAndroid;
14 16
15 // Android implementation of BluetoothTestBase. 17 // Android implementation of BluetoothTestBase.
16 class BluetoothTestAndroid : public BluetoothTestBase { 18 class BluetoothTestAndroid : public BluetoothTestBase {
17 public: 19 public:
(...skipping 22 matching lines...) Expand all
40 const std::string& uuid, 42 const std::string& uuid,
41 int properties) override; 43 int properties) override;
42 void RememberCharacteristicForSubsequentAction( 44 void RememberCharacteristicForSubsequentAction(
43 BluetoothGattCharacteristic* characteristic) override; 45 BluetoothGattCharacteristic* characteristic) override;
44 void SimulateGattNotifySessionStarted( 46 void SimulateGattNotifySessionStarted(
45 BluetoothGattCharacteristic* characteristic) override; 47 BluetoothGattCharacteristic* characteristic) override;
46 void SimulateGattCharacteristicSetNotifyWillFailSynchronouslyOnce( 48 void SimulateGattCharacteristicSetNotifyWillFailSynchronouslyOnce(
47 BluetoothGattCharacteristic* characteristic) override; 49 BluetoothGattCharacteristic* characteristic) override;
48 void SimulateGattCharacteristicRead( 50 void SimulateGattCharacteristicRead(
49 BluetoothGattCharacteristic* characteristic, 51 BluetoothGattCharacteristic* characteristic,
50 const std::vector<uint8>& value) override; 52 const std::vector<uint8_t>& value) override;
51 void SimulateGattCharacteristicReadError( 53 void SimulateGattCharacteristicReadError(
52 BluetoothGattCharacteristic* characteristic, 54 BluetoothGattCharacteristic* characteristic,
53 BluetoothGattService::GattErrorCode) override; 55 BluetoothGattService::GattErrorCode) override;
54 void SimulateGattCharacteristicReadWillFailSynchronouslyOnce( 56 void SimulateGattCharacteristicReadWillFailSynchronouslyOnce(
55 BluetoothGattCharacteristic* characteristic) override; 57 BluetoothGattCharacteristic* characteristic) override;
56 void SimulateGattCharacteristicWrite( 58 void SimulateGattCharacteristicWrite(
57 BluetoothGattCharacteristic* characteristic) override; 59 BluetoothGattCharacteristic* characteristic) override;
58 void SimulateGattCharacteristicWriteError( 60 void SimulateGattCharacteristicWriteError(
59 BluetoothGattCharacteristic* characteristic, 61 BluetoothGattCharacteristic* characteristic,
60 BluetoothGattService::GattErrorCode) override; 62 BluetoothGattService::GattErrorCode) override;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 97
96 base::android::ScopedJavaGlobalRef<jobject> j_fake_bluetooth_adapter_; 98 base::android::ScopedJavaGlobalRef<jobject> j_fake_bluetooth_adapter_;
97 }; 99 };
98 100
99 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName). 101 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName).
100 typedef BluetoothTestAndroid BluetoothTest; 102 typedef BluetoothTestAndroid BluetoothTest;
101 103
102 } // namespace device 104 } // namespace device
103 105
104 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_ANDROID_H_ 106 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_ANDROID_H_
OLDNEW
« no previous file with comments | « device/bluetooth/test/bluetooth_test.cc ('k') | device/bluetooth/test/bluetooth_test_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698