Clean up some compiler warnings

This is a cherry pick of http://go/wvgerrit/13665

Added a few static casts and removed some unused parameters.

Change-Id: I4f2d1c26580a188de429defc8d1d22757f4c6917
This commit is contained in:
Fred Gylys-Colwell
2015-03-16 11:31:48 -07:00
parent 76eca48f76
commit 12a986f808
6 changed files with 22 additions and 27 deletions

View File

@@ -1818,7 +1818,7 @@ TEST_P(DeviceFilesUsageInfoTest, Read) {
std::vector<std::pair<CdmKeyMessage, CdmKeyResponse> > license_info;
ASSERT_TRUE(device_files.RetrieveUsageInfo(app_id, &license_info));
if (index >= 0) {
EXPECT_EQ(index, license_info.size());
EXPECT_EQ(static_cast<size_t>(index), license_info.size());
for (size_t i = 0; i < license_info.size(); ++i) {
bool found = false;
for (size_t j = 0; j <= static_cast<size_t>(index); ++j) {
@@ -1832,7 +1832,7 @@ TEST_P(DeviceFilesUsageInfoTest, Read) {
EXPECT_TRUE(found);
}
} else {
EXPECT_EQ(0, license_info.size());
EXPECT_EQ(0u, license_info.size());
}
}

View File

@@ -159,7 +159,7 @@ ParseUrlTests parse_url_tests[] = {
8888, // port
"/", // path
},
{NULL} // list terminator
{NULL, NULL, false, NULL, 0, NULL} // list terminator
};
TEST_F(HttpSocketTest, ParseUrlTest) {

View File

@@ -832,7 +832,7 @@ TEST_F(PolicyEngineTest, QuerySuccess_LicenseNotReceived) {
CdmQueryMap query_info;
EXPECT_EQ(NO_ERROR, policy_engine_->Query(&query_info));
EXPECT_EQ(0, query_info.size());
EXPECT_EQ(0u, query_info.size());
}
TEST_F(PolicyEngineTest, QuerySuccess_LicenseStartTimeNotSet) {