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

Unified Diff: device/bluetooth/bluetooth_adapter_win_unittest.cc

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
« no previous file with comments | « device/bluetooth/bluetooth_adapter_mac_unittest.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_adapter_win_unittest.cc
diff --git a/device/bluetooth/bluetooth_adapter_win_unittest.cc b/device/bluetooth/bluetooth_adapter_win_unittest.cc
index 02b2f9484706972aa3d789155e2eac6382f02ab8..b88efef2215d91f89d4871abd4dff13422d9315c 100644
--- a/device/bluetooth/bluetooth_adapter_win_unittest.cc
+++ b/device/bluetooth/bluetooth_adapter_win_unittest.cc
@@ -168,7 +168,7 @@ TEST_F(BluetoothAdapterWinTest, SingleStartDiscovery) {
base::Bind(&BluetoothAdapterWinTest::IncrementNumStartDiscoveryCallbacks,
base::Unretained(this)),
DiscoverySessionErrorCallback());
- EXPECT_TRUE(ui_task_runner_->GetPendingTasks().empty());
+ EXPECT_FALSE(ui_task_runner_->HasPendingTask());
EXPECT_EQ(1u, bluetooth_task_runner_->NumPendingTasks());
EXPECT_FALSE(adapter_->IsDiscovering());
EXPECT_EQ(0, num_start_discovery_callbacks_);
@@ -203,7 +203,7 @@ TEST_F(BluetoothAdapterWinTest, MultipleStartDiscoveries) {
DiscoverySessionErrorCallback());
EXPECT_EQ(1u, bluetooth_task_runner_->NumPendingTasks());
}
- EXPECT_TRUE(ui_task_runner_->GetPendingTasks().empty());
+ EXPECT_FALSE(ui_task_runner_->HasPendingTask());
EXPECT_FALSE(adapter_->IsDiscovering());
EXPECT_EQ(0, num_start_discovery_callbacks_);
adapter_win_->DiscoveryStarted(true);
@@ -249,7 +249,7 @@ TEST_F(BluetoothAdapterWinTest, MultipleStartDiscoveriesAfterDiscovering) {
DiscoverySessionErrorCallback());
EXPECT_TRUE(adapter_->IsDiscovering());
EXPECT_TRUE(bluetooth_task_runner_->GetPendingTasks().empty());
- EXPECT_TRUE(ui_task_runner_->GetPendingTasks().empty());
+ EXPECT_FALSE(ui_task_runner_->HasPendingTask());
EXPECT_EQ(num_start_discovery_callbacks + 1,
num_start_discovery_callbacks_);
}
« no previous file with comments | « device/bluetooth/bluetooth_adapter_mac_unittest.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698