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

Unified Diff: device/bluetooth/bluetooth_local_gatt_descriptor_unittest.cc

Issue 1973343005: Remove service, add device, in BluetoothLocalGattService::Delegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/bluetooth/bluetooth_local_gatt_descriptor.h ('k') | device/bluetooth/bluetooth_local_gatt_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_local_gatt_descriptor_unittest.cc
diff --git a/device/bluetooth/bluetooth_local_gatt_descriptor_unittest.cc b/device/bluetooth/bluetooth_local_gatt_descriptor_unittest.cc
index 1e93540d2471cd55cb3a7d6df4242926c6ccd449..f10b23ac9eb99ad61116cb13b7911e1b6542c6f1 100644
--- a/device/bluetooth/bluetooth_local_gatt_descriptor_unittest.cc
+++ b/device/bluetooth/bluetooth_local_gatt_descriptor_unittest.cc
@@ -46,8 +46,8 @@ class BluetoothLocalGattDescriptorTest : public BluetoothGattServerTest {
TEST_F(BluetoothLocalGattDescriptorTest, ReadLocalDescriptorValue) {
delegate_->value_to_write_ = 0x1337;
SimulateLocalGattDescriptorValueReadRequest(
- service_.get(), read_descriptor_.get(),
- GetReadValueCallback(Call::EXPECTED), GetCallback(Call::NOT_EXPECTED));
+ read_descriptor_.get(), GetReadValueCallback(Call::EXPECTED),
+ GetCallback(Call::NOT_EXPECTED));
EXPECT_EQ(delegate_->value_to_write_, GetInteger(last_read_value_));
}
@@ -57,7 +57,7 @@ TEST_F(BluetoothLocalGattDescriptorTest, ReadLocalDescriptorValue) {
TEST_F(BluetoothLocalGattDescriptorTest, WriteLocalDescriptorValue) {
const uint64_t kValueToWrite = 0x7331ul;
SimulateLocalGattDescriptorValueWriteRequest(
- service_.get(), write_descriptor_.get(), GetValue(kValueToWrite),
+ write_descriptor_.get(), GetValue(kValueToWrite),
GetCallback(Call::EXPECTED), GetCallback(Call::NOT_EXPECTED));
EXPECT_EQ(kValueToWrite, delegate_->last_written_value_);
@@ -69,8 +69,8 @@ TEST_F(BluetoothLocalGattDescriptorTest, ReadLocalDescriptorValueFail) {
delegate_->value_to_write_ = 0x1337;
delegate_->should_fail_ = true;
SimulateLocalGattDescriptorValueReadRequest(
- service_.get(), read_descriptor_.get(),
- GetReadValueCallback(Call::NOT_EXPECTED), GetCallback(Call::EXPECTED));
+ read_descriptor_.get(), GetReadValueCallback(Call::NOT_EXPECTED),
+ GetCallback(Call::EXPECTED));
EXPECT_NE(delegate_->value_to_write_, GetInteger(last_read_value_));
}
@@ -81,7 +81,7 @@ TEST_F(BluetoothLocalGattDescriptorTest, WriteLocalDescriptorValueFail) {
const uint64_t kValueToWrite = 0x7331ul;
delegate_->should_fail_ = true;
SimulateLocalGattDescriptorValueWriteRequest(
- service_.get(), write_descriptor_.get(), GetValue(kValueToWrite),
+ write_descriptor_.get(), GetValue(kValueToWrite),
GetCallback(Call::NOT_EXPECTED), GetCallback(Call::EXPECTED));
EXPECT_NE(kValueToWrite, delegate_->last_written_value_);
@@ -93,8 +93,8 @@ TEST_F(BluetoothLocalGattDescriptorTest,
ReadLocalDescriptorValueWrongPermissions) {
delegate_->value_to_write_ = 0x1337;
SimulateLocalGattDescriptorValueReadRequest(
- service_.get(), write_descriptor_.get(),
- GetReadValueCallback(Call::NOT_EXPECTED), GetCallback(Call::EXPECTED));
+ write_descriptor_.get(), GetReadValueCallback(Call::NOT_EXPECTED),
+ GetCallback(Call::EXPECTED));
EXPECT_NE(delegate_->value_to_write_, GetInteger(last_read_value_));
}
@@ -105,7 +105,7 @@ TEST_F(BluetoothLocalGattDescriptorTest,
WriteLocalDescriptorValueWrongPermissions) {
const uint64_t kValueToWrite = 0x7331ul;
SimulateLocalGattDescriptorValueWriteRequest(
- service_.get(), read_descriptor_.get(), GetValue(kValueToWrite),
+ read_descriptor_.get(), GetValue(kValueToWrite),
GetCallback(Call::NOT_EXPECTED), GetCallback(Call::EXPECTED));
EXPECT_NE(kValueToWrite, delegate_->last_written_value_);
« no previous file with comments | « device/bluetooth/bluetooth_local_gatt_descriptor.h ('k') | device/bluetooth/bluetooth_local_gatt_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698