| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "components/policy/core/common/schema.h" | 5 #include "components/policy/core/common/schema.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 9 #include "base/macros.h" |
| 7 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 8 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
| 9 #include "components/policy/core/common/schema_internal.h" | 12 #include "components/policy/core/common/schema_internal.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 11 | 14 |
| 12 namespace policy { | 15 namespace policy { |
| 13 | 16 |
| 14 namespace { | 17 namespace { |
| 15 | 18 |
| 16 #define TestSchemaValidation(a, b, c, d) \ | 19 #define TestSchemaValidation(a, b, c, d) \ |
| (...skipping 1153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1170 | 1173 |
| 1171 EXPECT_FALSE(ParseFails(SchemaObjectWrapper( | 1174 EXPECT_FALSE(ParseFails(SchemaObjectWrapper( |
| 1172 "{" | 1175 "{" |
| 1173 " \"type\": \"integer\"," | 1176 " \"type\": \"integer\"," |
| 1174 " \"minimum\": 10," | 1177 " \"minimum\": 10," |
| 1175 " \"maximum\": 20" | 1178 " \"maximum\": 20" |
| 1176 "}"))); | 1179 "}"))); |
| 1177 } | 1180 } |
| 1178 | 1181 |
| 1179 } // namespace policy | 1182 } // namespace policy |
| OLD | NEW |