| Index: tools/json_schema_compiler/test/objects_unittest.cc
|
| diff --git a/tools/json_schema_compiler/test/objects_unittest.cc b/tools/json_schema_compiler/test/objects_unittest.cc
|
| index b0ed54f1ceaf32d22635701e086d1dd7b514e933..08ee1ad2f72d26bae8e724d292a7f73fd1f0e7c7 100644
|
| --- a/tools/json_schema_compiler/test/objects_unittest.cc
|
| +++ b/tools/json_schema_compiler/test/objects_unittest.cc
|
| @@ -57,3 +57,15 @@ TEST(JsonSchemaCompilerObjectsTest, ReturnsObjectResultCreate) {
|
| EXPECT_TRUE(result_dict->GetString("state", &state));
|
| EXPECT_EQ("foo", state);
|
| }
|
| +
|
| +TEST(JsonSchemaCompilerObjectsTest, OnObjectFiredCreate) {
|
| + scoped_ptr<OnObjectFired::SomeObject> object(new OnObjectFired::SomeObject());
|
| + object->state = OnObjectFired::SomeObject::STATE_BAR;
|
| + scoped_ptr<Value> result_value(OnObjectFired::Create(*object));
|
| +
|
| + DictionaryValue* result_dict = NULL;
|
| + EXPECT_TRUE(result_value->GetAsDictionary(&result_dict));
|
| + std::string state;
|
| + EXPECT_TRUE(result_dict->GetString("state", &state));
|
| + EXPECT_EQ("bar", state);
|
| +}
|
|
|