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

Unified Diff: device/bluetooth/bluetooth_task_manager_win_unittest.cc

Issue 1513043002: clang/win: Let remaining chromium_code targets build with -Wextra. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years 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_service_record_win_unittest.cc ('k') | device/hid/hid_service_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_task_manager_win_unittest.cc
diff --git a/device/bluetooth/bluetooth_task_manager_win_unittest.cc b/device/bluetooth/bluetooth_task_manager_win_unittest.cc
index 0a82c7de4526318a785db146ee9636bae52a8913..5e0f3addefeb29675edd3714bbd23bd2e7b5284f 100644
--- a/device/bluetooth/bluetooth_task_manager_win_unittest.cc
+++ b/device/bluetooth/bluetooth_task_manager_win_unittest.cc
@@ -80,12 +80,12 @@ class BluetoothTaskManagerWinTest : public testing::Test {
};
TEST_F(BluetoothTaskManagerWinTest, StartPolling) {
- EXPECT_EQ(1, bluetooth_task_runner_->GetPendingTasks().size());
+ EXPECT_EQ(1u, bluetooth_task_runner_->GetPendingTasks().size());
}
TEST_F(BluetoothTaskManagerWinTest, PollAdapterIfBluetoothStackIsAvailable) {
bluetooth_task_runner_->RunPendingTasks();
- int num_expected_pending_tasks = has_bluetooth_stack_ ? 1 : 0;
+ size_t num_expected_pending_tasks = has_bluetooth_stack_ ? 1 : 0;
EXPECT_EQ(num_expected_pending_tasks,
bluetooth_task_runner_->GetPendingTasks().size());
}
@@ -112,7 +112,7 @@ TEST_F(BluetoothTaskManagerWinTest, SetPowered) {
base::Closure closure;
task_manager_->PostSetPoweredBluetoothTask(true, closure, closure);
- EXPECT_EQ(1, bluetooth_task_runner_->GetPendingTasks().size());
+ EXPECT_EQ(1u, bluetooth_task_runner_->GetPendingTasks().size());
bluetooth_task_runner_->RunPendingTasks();
EXPECT_TRUE(ui_task_runner_->GetPendingTasks().size() >= 1);
}
« no previous file with comments | « device/bluetooth/bluetooth_service_record_win_unittest.cc ('k') | device/hid/hid_service_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698