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

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

Issue 682493002: Remove the dependency on json schema compiler. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 2 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/callbacks.json ('k') | tools/json_schema_compiler/test/choices.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/json_schema_compiler/test/callbacks_unittest.cc
diff --git a/tools/json_schema_compiler/test/callbacks_unittest.cc b/tools/json_schema_compiler/test/callbacks_unittest.cc
deleted file mode 100644
index 001e977bf07a74c1a75105bbe18972acdae2cdbd..0000000000000000000000000000000000000000
--- a/tools/json_schema_compiler/test/callbacks_unittest.cc
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// 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/callbacks.h"
-
-#include "testing/gtest/include/gtest/gtest.h"
-
-using namespace test::api::callbacks;
-
-TEST(JsonSchemaCompilerCallbacksTest, ReturnsObjectResultCreate) {
- ReturnsObject::Results::SomeObject some_object;
- some_object.state = ReturnsObject::Results::SomeObject::STATE_FOO;
- scoped_ptr<base::ListValue> results =
- ReturnsObject::Results::Create(some_object);
-
- base::DictionaryValue* expected_dict = new base::DictionaryValue();
- expected_dict->SetString("state", "foo");
- base::ListValue expected;
- expected.Append(expected_dict);
- EXPECT_TRUE(results->Equals(&expected));
-}
-
-TEST(JsonSchemaCompilerCallbacksTest, ReturnsMultipleResultCreate) {
- ReturnsMultiple::Results::SomeObject some_object;
- some_object.state = ReturnsMultiple::Results::SomeObject::STATE_FOO;
- scoped_ptr<base::ListValue> results =
- ReturnsMultiple::Results::Create(5, some_object);
-
- base::DictionaryValue* expected_dict = new base::DictionaryValue();
- expected_dict->SetString("state", "foo");
- base::ListValue expected;
- expected.Append(new base::FundamentalValue(5));
- expected.Append(expected_dict);
- EXPECT_TRUE(results->Equals(&expected));
-}
« no previous file with comments | « tools/json_schema_compiler/test/callbacks.json ('k') | tools/json_schema_compiler/test/choices.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698