Chromium Code Reviews| 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 95c3f0d96ac31aa5828cbdeb0abf3cdf6015647e..3582f4f3dbaeb187cae0ccd91c787527d6cdfce8 100644 |
| --- a/tools/json_schema_compiler/test/objects_unittest.cc |
| +++ b/tools/json_schema_compiler/test/objects_unittest.cc |
| @@ -4,6 +4,7 @@ |
| #include "tools/json_schema_compiler/test/objects.h" |
| +#include "base/json/json_writer.h" |
| #include "testing/gtest/include/gtest/gtest.h" |
| using namespace test::api::objects; |
| @@ -67,4 +68,9 @@ TEST(JsonSchemaCompilerObjectsTest, OnObjectFiredCreate) { |
| DictionaryValue* result = NULL; |
| ASSERT_TRUE(results->GetDictionary(0, &result)); |
| ASSERT_TRUE(result->Equals(&expected)); |
| + |
| + std::string json1 = OnObjectFired::ToJson(object); |
| + std::string json2; |
| + base::JSONWriter::Write(results.get(), &json2); |
| + ASSERT_EQ(json1, json2); |
|
not at google - send to devlin
2012/07/26 23:33:37
yep that's fine.
|
| } |