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

Side by Side 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: Additional comment on RegisterBluetoothJni 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 unified diff | Download patch
« no previous file with comments | « device/bluetooth/bluetooth_adapter_android.cc ('k') | device/device_tests.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "base/memory/ref_counted.h" 5 #include "base/memory/ref_counted.h"
6 #include "device/bluetooth/bluetooth_adapter_android.h" 6 #include "device/bluetooth/bluetooth_adapter_android.h"
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 8
9 namespace device { 9 namespace device {
10 10
11 class BluetoothAdapterAndroidTest : public testing::Test { 11 class BluetoothAdapterAndroidTest : public testing::Test {
12 protected: 12 protected:
13 BluetoothAdapterAndroidTest() { 13 BluetoothAdapterAndroidTest() {
14 adapter_ = BluetoothAdapterAndroid::CreateAdapter().get(); 14 adapter_ = BluetoothAdapterAndroid::CreateAdapter().get();
15 } 15 }
16 16
17 scoped_refptr<BluetoothAdapter> adapter_; 17 scoped_refptr<BluetoothAdapterAndroid> adapter_;
18 }; 18 };
19 19
20 TEST_F(BluetoothAdapterAndroidTest, Construct) { 20 TEST_F(BluetoothAdapterAndroidTest, Construct) {
21 EXPECT_TRUE(adapter_.get()); 21 ASSERT_TRUE(adapter_.get());
22 EXPECT_FALSE(adapter_->HasBluetoothPermission());
22 } 23 }
23 24
24 } // namespace device 25 } // namespace device
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_adapter_android.cc ('k') | device/device_tests.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698