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

Unified Diff: device/bluetooth/test/bluetooth_test_win.cc

Issue 2331423002: Replace TestSimpleTaskRunner::GetPendingTasks with TakePendingTasks (Closed)
Patch Set: split test 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_win_unittest.cc ('k') | extensions/common/one_shot_event_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/test/bluetooth_test_win.cc
diff --git a/device/bluetooth/test/bluetooth_test_win.cc b/device/bluetooth/test/bluetooth_test_win.cc
index 46c39cd09b3a839dc3df1929f4e14b7b0205e8ed..5bbdebfc4dbb43ccb46b0a48927b5ba7677c92e1 100644
--- a/device/bluetooth/test/bluetooth_test_win.cc
+++ b/device/bluetooth/test/bluetooth_test_win.cc
@@ -472,8 +472,7 @@ win::GattCharacteristic* BluetoothTestWin::GetSimulatedCharacteristic(
void BluetoothTestWin::RunPendingTasksUntilCallback() {
std::deque<base::TestPendingTask> tasks =
- bluetooth_task_runner_->GetPendingTasks();
- bluetooth_task_runner_->ClearPendingTasks();
+ bluetooth_task_runner_->TakePendingTasks();
int original_callback_count = callback_count_;
int original_error_callback_count = error_callback_count_;
do {
« no previous file with comments | « device/bluetooth/bluetooth_adapter_win_unittest.cc ('k') | extensions/common/one_shot_event_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698