| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |