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

Unified Diff: device/bluetooth/bluetooth_adapter_android_unittest.cc

Issue 1119113002: bluetooth: Initial JNI setup for device/bluetooth. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge GN files, removes circular includes. 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 0a0c22ede885214c5bfd14c35b0a5d5551793021..c4d5252e339c7a99f97c059bccfed78af6695902 100644
--- a/device/bluetooth/bluetooth_adapter_android_unittest.cc
+++ b/device/bluetooth/bluetooth_adapter_android_unittest.cc
@@ -14,11 +14,12 @@ class BluetoothAdapterAndroidTest : public testing::Test {
adapter_ = BluetoothAdapterAndroid::CreateAdapter().get();
}
- scoped_refptr<BluetoothAdapter> adapter_;
+ scoped_refptr<BluetoothAdapterAndroid> adapter_;
};
TEST_F(BluetoothAdapterAndroidTest, Construct) {
- EXPECT_TRUE(adapter_.get());
+ ASSERT_TRUE(adapter_.get());
+ EXPECT_FALSE(adapter_->HasBluetoothPermission());
}
} // namespace device

Powered by Google App Engine
This is Rietveld 408576698