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

Side by Side Diff: chrome/browser/chromeos/login/bluetooth_host_pairing_browsertest.cc

Issue 2949093004: Remove all of the CrOS Ozone configs from MB. (Closed)
Patch Set: rebase Created 3 years, 5 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 | « no previous file | infra/config/cq.cfg » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/ptr_util.h" 5 #include "base/memory/ptr_util.h"
6 #include "base/memory/ref_counted.h" 6 #include "base/memory/ref_counted.h"
7 #include "base/message_loop/message_loop.h" 7 #include "base/message_loop/message_loop.h"
8 #include "base/run_loop.h" 8 #include "base/run_loop.h"
9 #include "chrome/browser/chromeos/login/test/oobe_base_test.h" 9 #include "chrome/browser/chromeos/login/test/oobe_base_test.h"
10 #include "chrome/browser/chromeos/login/test/oobe_screen_waiter.h" 10 #include "chrome/browser/chromeos/login/test/oobe_screen_waiter.h"
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 static_cast<device::FakeInputServiceLinux*>( 154 static_cast<device::FakeInputServiceLinux*>(
155 device::InputServiceLinux::GetInstance()) 155 device::InputServiceLinux::GetInstance())
156 ->AddDeviceForTesting(info); 156 ->AddDeviceForTesting(info);
157 } 157 }
158 158
159 scoped_refptr<device::BluetoothAdapter> bluetooth_adapter_; 159 scoped_refptr<device::BluetoothAdapter> bluetooth_adapter_;
160 std::unique_ptr<TestDelegate> delegate_; 160 std::unique_ptr<TestDelegate> delegate_;
161 pairing_chromeos::BluetoothHostPairingController* controller_ = nullptr; 161 pairing_chromeos::BluetoothHostPairingController* controller_ = nullptr;
162 162
163 bluez::FakeBluetoothDeviceClient* fake_bluetooth_device_client_ = nullptr; 163 bluez::FakeBluetoothDeviceClient* fake_bluetooth_device_client_ = nullptr;
164 base::MessageLoop message_loop_; 164 base::MessageLoopForUI message_loop_;
165 165
166 DISALLOW_COPY_AND_ASSIGN(BluetoothHostPairingNoInputTest); 166 DISALLOW_COPY_AND_ASSIGN(BluetoothHostPairingNoInputTest);
167 }; 167 };
168 168
169 // Test that in normal user OOBE login flow for devices lacking input devices, 169 // Test that in normal user OOBE login flow for devices lacking input devices,
170 // if there is no Bluetooth device connected, the Bluetooth adapter should be 170 // if there is no Bluetooth device connected, the Bluetooth adapter should be
171 // disabled when OOBE reaches login screen (which means OOBE has been completed) 171 // disabled when OOBE reaches login screen (which means OOBE has been completed)
172 IN_PROC_BROWSER_TEST_F(BluetoothHostPairingNoInputTest, 172 IN_PROC_BROWSER_TEST_F(BluetoothHostPairingNoInputTest,
173 NoBluetoothDeviceConnected) { 173 NoBluetoothDeviceConnected) {
174 OobeScreenWaiter(OobeScreen::SCREEN_OOBE_HID_DETECTION).Wait(); 174 OobeScreenWaiter(OobeScreen::SCREEN_OOBE_HID_DETECTION).Wait();
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 // Test that in normal user OOBE login flow for devices that have input devices, 251 // Test that in normal user OOBE login flow for devices that have input devices,
252 // the Bluetooth is disabled by default. 252 // the Bluetooth is disabled by default.
253 IN_PROC_BROWSER_TEST_F(BluetoothHostPairingWithInputTest, 253 IN_PROC_BROWSER_TEST_F(BluetoothHostPairingWithInputTest,
254 BluetoothDisableByDefault) { 254 BluetoothDisableByDefault) {
255 OobeScreenWaiter(OobeScreen::SCREEN_OOBE_NETWORK).Wait(); 255 OobeScreenWaiter(OobeScreen::SCREEN_OOBE_NETWORK).Wait();
256 EXPECT_FALSE(controller()); 256 EXPECT_FALSE(controller());
257 EXPECT_FALSE(bluetooth_adapter()); 257 EXPECT_FALSE(bluetooth_adapter());
258 } 258 }
259 259
260 } // namespace chromeos 260 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | infra/config/cq.cfg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698