| Index: tools/json_schema_compiler/test/functions_on_types_unittest.cc
|
| diff --git a/tools/json_schema_compiler/test/functions_on_types_unittest.cc b/tools/json_schema_compiler/test/functions_on_types_unittest.cc
|
| index 0694cb348de6e75405f25051ab6879121cd64742..d88c3fb40a036c9dbef13a833a1c8c561d9b29a3 100644
|
| --- a/tools/json_schema_compiler/test/functions_on_types_unittest.cc
|
| +++ b/tools/json_schema_compiler/test/functions_on_types_unittest.cc
|
| @@ -48,12 +48,13 @@ TEST(JsonSchemaCompilerFunctionsOnTypesTest, StorageAreaGetParamsCreate) {
|
| }
|
|
|
| TEST(JsonSchemaCompilerFunctionsOnTypesTest, StorageAreaGetResultCreate) {
|
| - scoped_ptr<StorageArea::Get::Result::Items> items(
|
| - new StorageArea::Get::Result::Items());
|
| - items->additional_properties.SetDouble("asdf", 0.1);
|
| - items->additional_properties.SetString("sdfg", "zxcv");
|
| - scoped_ptr<Value> result_value(StorageArea::Get::Result::Create(*items));
|
| - EXPECT_TRUE(result_value->Equals(&items->additional_properties));
|
| + StorageArea::Get::Result::Items items;
|
| + items.additional_properties.SetDouble("asdf", 0.1);
|
| + items.additional_properties.SetString("sdfg", "zxcv");
|
| + scoped_ptr<ListValue> results(StorageArea::Get::Result::Create(items));
|
| + DictionaryValue* item_result = NULL;
|
| + results->GetDictionary(0, &item_result);
|
| + EXPECT_TRUE(item_result->Equals(&items.additional_properties));
|
| }
|
|
|
| TEST(JsonSchemaCompilerFunctionsOnTypesTest, ChromeSettingGetParamsCreate) {
|
|
|