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

Side by Side Diff: chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_apitest_chromeos.cc

Issue 2353133005: Add the chrome.bluetoothLowEnergy.setAdvertisingInterval API. (Closed)
Patch Set: . Created 4 years, 3 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
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 <memory> 5 #include <memory>
6 6
7 #include "chrome/browser/apps/app_browsertest_util.h" 7 #include "chrome/browser/apps/app_browsertest_util.h"
8 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h" 8 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h"
9 #include "chrome/browser/chromeos/login/users/fake_chrome_user_manager.h" 9 #include "chrome/browser/chromeos/login/users/fake_chrome_user_manager.h"
10 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h" 10 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h"
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 101
102 IN_PROC_BROWSER_TEST_F(BluetoothLowEnergyApiTestChromeOs, 102 IN_PROC_BROWSER_TEST_F(BluetoothLowEnergyApiTestChromeOs,
103 RegisterAdvertisement) { 103 RegisterAdvertisement) {
104 EnterKioskSession(); 104 EnterKioskSession();
105 SetAutoLaunchApp(); 105 SetAutoLaunchApp();
106 ASSERT_TRUE(RunPlatformAppTest( 106 ASSERT_TRUE(RunPlatformAppTest(
107 "api_test/bluetooth_low_energy/register_advertisement")) 107 "api_test/bluetooth_low_energy/register_advertisement"))
108 << message_; 108 << message_;
109 } 109 }
110 110
111 IN_PROC_BROWSER_TEST_F(BluetoothLowEnergyApiTestChromeOs,
112 SetAdvertisingInterval) {
113 EnterKioskSession();
114 SetAutoLaunchApp();
115 ASSERT_TRUE(
116 RunPlatformAppTest("api_test/bluetooth_low_energy/"
117 "set_advertising_interval"))
118 << message_;
119 }
120
111 IN_PROC_BROWSER_TEST_F(BluetoothLowEnergyApiTestChromeOs, CreateService) { 121 IN_PROC_BROWSER_TEST_F(BluetoothLowEnergyApiTestChromeOs, CreateService) {
112 EnterKioskSession(); 122 EnterKioskSession();
113 SetAutoLaunchApp(); 123 SetAutoLaunchApp();
114 ASSERT_TRUE( 124 ASSERT_TRUE(
115 RunPlatformAppTest("api_test/bluetooth_low_energy/" 125 RunPlatformAppTest("api_test/bluetooth_low_energy/"
116 "create_service")) 126 "create_service"))
117 << message_; 127 << message_;
118 } 128 }
119 129
120 IN_PROC_BROWSER_TEST_F(BluetoothLowEnergyApiTestChromeOs, CreateService_Flag) { 130 IN_PROC_BROWSER_TEST_F(BluetoothLowEnergyApiTestChromeOs, CreateService_Flag) {
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 "notify_characteristic_value_changed_error_conditions")) 216 "notify_characteristic_value_changed_error_conditions"))
207 << message_; 217 << message_;
208 } 218 }
209 219
210 // TODO(rkc): Figure out how to integrate with BluetoothTestBlueZ and write 220 // TODO(rkc): Figure out how to integrate with BluetoothTestBlueZ and write
211 // comprehensive tests for GATT server events. See http://crbug.com/607395 for 221 // comprehensive tests for GATT server events. See http://crbug.com/607395 for
212 // details. 222 // details.
213 223
214 } // namespace 224 } // namespace
215 } // namespace extensions 225 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698