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

Unified Diff: components/crash/content/app/crash_keys_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
Index: components/crash/content/app/crash_keys_win_unittest.cc
diff --git a/components/crash/content/app/crash_keys_win_unittest.cc b/components/crash/content/app/crash_keys_win_unittest.cc
index f1a645e32058b06f55cb8be1b7e3e3c3edf31a62..197066ff7b651eedc8ceda5d3a8ba49c65fc6311 100644
--- a/components/crash/content/app/crash_keys_win_unittest.cc
+++ b/components/crash/content/app/crash_keys_win_unittest.cc
@@ -129,15 +129,15 @@ TEST_F(CrashKeysWinTest, OfficialLikeKeys) {
// We expect 7 fixed keys and a "freeboard" of 256 keys for dynamic entries.
EXPECT_EQ(256U + 7U, info->count);
- EXPECT_EQ(1, CountKeyValueOccurences(info, L"ver", L"1.2.3.4"));
- EXPECT_EQ(1, CountKeyValueOccurences(info, L"prod", L"SomeProdName"));
- EXPECT_EQ(1, CountKeyValueOccurences(info, L"plat", L"Win32"));
- EXPECT_EQ(1, CountKeyValueOccurences(info, L"ptype", L"made_up_type"));
+ EXPECT_EQ(1u, CountKeyValueOccurences(info, L"ver", L"1.2.3.4"));
+ EXPECT_EQ(1u, CountKeyValueOccurences(info, L"prod", L"SomeProdName"));
+ EXPECT_EQ(1u, CountKeyValueOccurences(info, L"plat", L"Win32"));
+ EXPECT_EQ(1u, CountKeyValueOccurences(info, L"ptype", L"made_up_type"));
std::wstring pid_str(base::StringPrintf(L"%d", ::GetCurrentProcessId()));
- EXPECT_EQ(1, CountKeyValueOccurences(info, L"pid", pid_str.c_str()));
- EXPECT_EQ(1, CountKeyValueOccurences(info, L"channel", L"-devm"));
- EXPECT_EQ(1, CountKeyValueOccurences(info, L"profile-type", L"temporary"));
- EXPECT_EQ(256, CountKeyValueOccurences(info, L"unspecified-crash-key", L""));
+ EXPECT_EQ(1u, CountKeyValueOccurences(info, L"pid", pid_str.c_str()));
+ EXPECT_EQ(1u, CountKeyValueOccurences(info, L"channel", L"-devm"));
+ EXPECT_EQ(1u, CountKeyValueOccurences(info, L"profile-type", L"temporary"));
+ EXPECT_EQ(256u, CountKeyValueOccurences(info, L"unspecified-crash-key", L""));
}
} // namespace breakpad

Powered by Google App Engine
This is Rietveld 408576698