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

Unified Diff: device/bluetooth/test/bluetooth_test.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 side-by-side diff with in-line comments
Download patch
Index: device/bluetooth/test/bluetooth_test.h
diff --git a/device/bluetooth/test/bluetooth_test.h b/device/bluetooth/test/bluetooth_test.h
index 3ddfec99d5ed5895d16987c17cdeca1708a67626..807fb22f92bbdbca2806365736f6c221cb3573ab 100644
--- a/device/bluetooth/test/bluetooth_test.h
+++ b/device/bluetooth/test/bluetooth_test.h
@@ -5,6 +5,8 @@
#ifndef DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_H_
#define DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_H_
+#include <stdint.h>
+
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
#include "base/message_loop/message_loop.h"
@@ -140,7 +142,7 @@ class BluetoothTestBase : public testing::Test {
// RememberCharacteristicForSubsequentAction.
virtual void SimulateGattCharacteristicRead(
BluetoothGattCharacteristic* characteristic,
- const std::vector<uint8>& value) {}
+ const std::vector<uint8_t>& value) {}
// Simulates a Characteristic Read operation failing with a GattErrorCode.
virtual void SimulateGattCharacteristicReadError(
@@ -178,7 +180,7 @@ class BluetoothTestBase : public testing::Test {
void GattConnectionCallback(Call expected,
scoped_ptr<BluetoothGattConnection>);
void NotifyCallback(Call expected, scoped_ptr<BluetoothGattNotifySession>);
- void ReadValueCallback(Call expected, const std::vector<uint8>& value);
+ void ReadValueCallback(Call expected, const std::vector<uint8_t>& value);
void ErrorCallback(Call expected);
void ConnectErrorCallback(Call expected,
enum BluetoothDevice::ConnectErrorCode);
@@ -212,8 +214,8 @@ class BluetoothTestBase : public testing::Test {
enum BluetoothDevice::ConnectErrorCode last_connect_error_code_ =
BluetoothDevice::ERROR_UNKNOWN;
ScopedVector<BluetoothGattNotifySession> notify_sessions_;
- std::vector<uint8> last_read_value_;
- std::vector<uint8> last_write_value_;
+ std::vector<uint8_t> last_read_value_;
+ std::vector<uint8_t> last_write_value_;
BluetoothGattService::GattErrorCode last_gatt_error_code_;
int callback_count_ = 0;
« no previous file with comments | « device/bluetooth/dbus/fake_bluetooth_media_transport_client.cc ('k') | device/bluetooth/test/bluetooth_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698