| 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/choices.h" | 5 #include "tools/json_schema_compiler/test/choices.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include "base/strings/string_piece.h" | 9 #include "base/strings/string_piece.h" |
| 8 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| 9 #include "tools/json_schema_compiler/test/test_util.h" | 11 #include "tools/json_schema_compiler/test/test_util.h" |
| 10 | 12 |
| 11 namespace { | 13 namespace { |
| 12 | 14 |
| 13 using namespace test::api::choices; | 15 using namespace test::api::choices; |
| 14 using json_schema_compiler::test_util::Dictionary; | 16 using json_schema_compiler::test_util::Dictionary; |
| 15 using json_schema_compiler::test_util::List; | 17 using json_schema_compiler::test_util::List; |
| 16 using json_schema_compiler::test_util::ReadJson; | 18 using json_schema_compiler::test_util::ReadJson; |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 obj->as_choice2->as_choice_types.get(); | 285 obj->as_choice2->as_choice_types.get(); |
| 284 // Bleh too much effort to test everything. | 286 // Bleh too much effort to test everything. |
| 285 ASSERT_EQ(2u, choice_types->size()); | 287 ASSERT_EQ(2u, choice_types->size()); |
| 286 } | 288 } |
| 287 | 289 |
| 288 EXPECT_TRUE(base::Value::Equals(value.get(), obj->ToValue().get())); | 290 EXPECT_TRUE(base::Value::Equals(value.get(), obj->ToValue().get())); |
| 289 } | 291 } |
| 290 } | 292 } |
| 291 | 293 |
| 292 } // namespace | 294 } // namespace |
| OLD | NEW |