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

Unified Diff: device/bluetooth/bluetooth_adapter_android_unittest.cc

Issue 1150833002: bluetooth: android: Initial Low Energy Discovery Sessions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bta-manifest-
Patch Set: Created 5 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
Index: device/bluetooth/bluetooth_adapter_android_unittest.cc
diff --git a/device/bluetooth/bluetooth_adapter_android_unittest.cc b/device/bluetooth/bluetooth_adapter_android_unittest.cc
index fcc9516fe8ba42e1f8839ee95d9234ef554cf088..96df9842d456c15dcf7999679986aa098f6a089e 100644
--- a/device/bluetooth/bluetooth_adapter_android_unittest.cc
+++ b/device/bluetooth/bluetooth_adapter_android_unittest.cc
@@ -26,7 +26,7 @@ class BluetoothAdapterAndroidTest : public testing::Test {
TEST_F(BluetoothAdapterAndroidTest, Construct) {
InitWithPermission();
ASSERT_TRUE(adapter_.get());
- EXPECT_TRUE(adapter_->HasBluetoothPermission());
+ EXPECT_TRUE(adapter_->HasBluetoothCapability());
if (!adapter_->IsPresent()) {
LOG(WARNING) << "Bluetooth adapter not present; skipping unit test.";
return;
@@ -44,7 +44,7 @@ TEST_F(BluetoothAdapterAndroidTest, Construct) {
TEST_F(BluetoothAdapterAndroidTest, ConstructNoPermision) {
InitWithoutPermission();
ASSERT_TRUE(adapter_.get());
- EXPECT_FALSE(adapter_->HasBluetoothPermission());
+ EXPECT_FALSE(adapter_->HasBluetoothCapability());
EXPECT_EQ(adapter_->GetAddress().length(), 0u);
EXPECT_EQ(adapter_->GetName().length(), 0u);
EXPECT_FALSE(adapter_->IsPresent());

Powered by Google App Engine
This is Rietveld 408576698