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

Unified Diff: device/bluetooth/bluetooth_adapter_mac_unittest.mm

Issue 2338733002: Use TestSimpleTaskRunner::HasPendingTask instead of GetPendingTasks().empty() (Closed)
Patch Set: +bluetooth_adapter_win_unittest.cc 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 side-by-side diff with in-line comments
Download patch
Index: device/bluetooth/bluetooth_adapter_mac_unittest.mm
diff --git a/device/bluetooth/bluetooth_adapter_mac_unittest.mm b/device/bluetooth/bluetooth_adapter_mac_unittest.mm
index 200f0ea34d9f0de14d3f825330b21b93e5b43f8f..a17dabd717186f0729263fad8339dc79190c405e 100644
--- a/device/bluetooth/bluetooth_adapter_mac_unittest.mm
+++ b/device/bluetooth/bluetooth_adapter_mac_unittest.mm
@@ -148,7 +148,7 @@ class BluetoothAdapterMacTest : public testing::Test {
TEST_F(BluetoothAdapterMacTest, Poll) {
PollAdapter();
- EXPECT_FALSE(ui_task_runner_->GetPendingTasks().empty());
+ EXPECT_TRUE(ui_task_runner_->HasPendingTask());
}
TEST_F(BluetoothAdapterMacTest, AddDiscoverySessionWithLowEnergyFilter) {

Powered by Google App Engine
This is Rietveld 408576698