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

Side by Side Diff: device/bluetooth/test/test_bluetooth_adapter_observer.cc

Issue 1396083003: Don't use base::MessageLoop::{Quit,QuitClosure} in ash/, chromeos/, device/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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_socket_chromeos_unittest.cc ('k') | no next file » | 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 "device/bluetooth/test/test_bluetooth_adapter_observer.h" 5 #include "device/bluetooth/test/test_bluetooth_adapter_observer.h"
6 6
7 #include "base/message_loop/message_loop.h" 7 #include "base/message_loop/message_loop.h"
8 #include "device/bluetooth/bluetooth_gatt_characteristic.h" 8 #include "device/bluetooth/bluetooth_gatt_characteristic.h"
9 #include "device/bluetooth/bluetooth_gatt_descriptor.h" 9 #include "device/bluetooth/bluetooth_gatt_descriptor.h"
10 #include "device/bluetooth/bluetooth_gatt_service.h" 10 #include "device/bluetooth/bluetooth_gatt_service.h"
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 EXPECT_EQ( 295 EXPECT_EQ(
296 descriptor->GetCharacteristic()->GetDescriptor(last_gatt_descriptor_id_), 296 descriptor->GetCharacteristic()->GetDescriptor(last_gatt_descriptor_id_),
297 descriptor); 297 descriptor);
298 298
299 QuitMessageLoop(); 299 QuitMessageLoop();
300 } 300 }
301 301
302 void TestBluetoothAdapterObserver::QuitMessageLoop() { 302 void TestBluetoothAdapterObserver::QuitMessageLoop() {
303 if (base::MessageLoop::current() && 303 if (base::MessageLoop::current() &&
304 base::MessageLoop::current()->is_running()) 304 base::MessageLoop::current()->is_running())
305 base::MessageLoop::current()->Quit(); 305 base::MessageLoop::current()->QuitWhenIdle();
306 } 306 }
307 307
308 } // namespace device 308 } // namespace device
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_socket_chromeos_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698