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

Side by Side Diff: tools/json_schema_compiler/test/enums_unittest.cc

Issue 10701012: JSON Schema Compiler: Added event compilation. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "tools/json_schema_compiler/test/enums.h" 5 #include "tools/json_schema_compiler/test/enums.h"
6 6
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 8
9 using namespace test::api::enums; 9 using namespace test::api::enums;
10 10
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 } 122 }
123 { 123 {
124 scoped_ptr<ListValue> params_value(new ListValue()); 124 scoped_ptr<ListValue> params_value(new ListValue());
125 params_value->Append(Value::CreateStringValue("baz")); 125 params_value->Append(Value::CreateStringValue("baz"));
126 params_value->Append(Value::CreateStringValue("invalid")); 126 params_value->Append(Value::CreateStringValue("invalid"));
127 scoped_ptr<TakesMultipleOptionalEnums::Params> params( 127 scoped_ptr<TakesMultipleOptionalEnums::Params> params(
128 TakesMultipleOptionalEnums::Params::Create(*params_value)); 128 TakesMultipleOptionalEnums::Params::Create(*params_value));
129 EXPECT_FALSE(params.get()); 129 EXPECT_FALSE(params.get());
130 } 130 }
131 } 131 }
132
133 TEST(JsonSchemaCompilerEnumsTest, OnEnumFiredCreate) {
134 {
135 }
136 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698