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

Unified Diff: tools/json_schema_compiler/test/choices_unittest.cc

Issue 9456007: Add wider support to json_schema_compiler (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: reupload Created 8 years, 10 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 | « tools/json_schema_compiler/test/arrays_unittest.cc ('k') | tools/json_schema_compiler/test/crossref.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/json_schema_compiler/test/choices_unittest.cc
diff --git a/tools/json_schema_compiler/test/choices_unittest.cc b/tools/json_schema_compiler/test/choices_unittest.cc
index 32bab698422db61d03df7d22da77faaf7ff2b755..dcdfd77c060a7a69521fe2f3b90ffc231d6f0129 100644
--- a/tools/json_schema_compiler/test/choices_unittest.cc
+++ b/tools/json_schema_compiler/test/choices_unittest.cc
@@ -36,7 +36,7 @@ TEST(JsonSchemaCompilerChoicesTest, TakesIntegersParamsCreate) {
TakesIntegers::Params::Create(*params_value));
EXPECT_TRUE(params.get());
EXPECT_EQ(TakesIntegers::Params::NUMS_ARRAY, params->nums_type);
- EXPECT_EQ(2UL, (*params->nums_array).size());
+ EXPECT_EQ((size_t) 2, (*params->nums_array).size());
EXPECT_EQ(6, (*params->nums_array)[0]);
EXPECT_EQ(8, (*params->nums_array)[1]);
}
@@ -119,7 +119,7 @@ TEST(JsonSchemaCompilerChoicesTest, ReturnChoices) {
scoped_ptr<Value> array_result(ReturnChoices::Result::Create(integers));
ListValue* list = NULL;
EXPECT_TRUE(array_result->GetAsList(&list));
- EXPECT_EQ(2UL, list->GetSize());
+ EXPECT_EQ((size_t) 2, list->GetSize());
int temp;
EXPECT_TRUE(list->GetInteger(0, &temp));
EXPECT_EQ(1, temp);
« no previous file with comments | « tools/json_schema_compiler/test/arrays_unittest.cc ('k') | tools/json_schema_compiler/test/crossref.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698