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

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

Issue 11827026: Overhaul JSON Schema Compiler to support a number of features required to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 11 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
Index: tools/json_schema_compiler/test/any_unittest.cc
diff --git a/tools/json_schema_compiler/test/any_unittest.cc b/tools/json_schema_compiler/test/any_unittest.cc
index 07802305c9ff5203a201a1a64129d57d93f35911..81fd6814e0bef11b578ea76a2174696d3ab4a928 100644
--- a/tools/json_schema_compiler/test/any_unittest.cc
+++ b/tools/json_schema_compiler/test/any_unittest.cc
@@ -2,9 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "tools/json_schema_compiler/test/any.h"
-
#include "testing/gtest/include/gtest/gtest.h"
+#include "tools/json_schema_compiler/test/any.h"
using namespace test::api::any;
@@ -41,9 +40,9 @@ TEST(JsonSchemaCompilerAnyTest, OptionalAnyParamsCreate) {
params_value->Append(param->DeepCopy());
scoped_ptr<OptionalAny::Params> params(
OptionalAny::Params::Create(*params_value));
- EXPECT_TRUE(params.get());
- EXPECT_TRUE(params->any_name.get());
- EXPECT_TRUE(params->any_name->value().Equals(param.get()));
+ ASSERT_TRUE(params);
+ ASSERT_TRUE(params->any_name);
+ EXPECT_TRUE(params->any_name->Equals(param.get()));
}
{
scoped_ptr<ListValue> params_value(new ListValue());
@@ -51,9 +50,8 @@ TEST(JsonSchemaCompilerAnyTest, OptionalAnyParamsCreate) {
params_value->Append(param->DeepCopy());
scoped_ptr<OptionalAny::Params> params(
OptionalAny::Params::Create(*params_value));
- EXPECT_TRUE(params.get());
- EXPECT_TRUE(params->any_name.get());
- EXPECT_TRUE(params->any_name.get());
- EXPECT_TRUE(params->any_name->value().Equals(param.get()));
+ ASSERT_TRUE(params);
+ ASSERT_TRUE(params->any_name);
+ EXPECT_TRUE(params->any_name->Equals(param.get()));
}
}
« no previous file with comments | « tools/json_schema_compiler/test/additional_properties_unittest.cc ('k') | tools/json_schema_compiler/test/arrays.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698