| 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 "chrome/common/policy/policy_schema.h" | 5 #include "components/policy/core/common/policy_schema.h" |
| 6 | 6 |
| 7 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
| 8 | 8 |
| 9 namespace policy { | 9 namespace policy { |
| 10 | 10 |
| 11 namespace { | 11 namespace { |
| 12 | 12 |
| 13 #define SCHEMA_VERSION "\"$schema\":\"http://json-schema.org/draft-03/schema#\"" | 13 #define SCHEMA_VERSION "\"$schema\":\"http://json-schema.org/draft-03/schema#\"" |
| 14 #define OBJECT_TYPE "\"type\":\"object\"" | 14 #define OBJECT_TYPE "\"type\":\"object\"" |
| 15 | 15 |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 EXPECT_EQ(base::Value::TYPE_BOOLEAN, subsub->type()); | 184 EXPECT_EQ(base::Value::TYPE_BOOLEAN, subsub->type()); |
| 185 subsub = sub->GetSchemaForProperty("two"); | 185 subsub = sub->GetSchemaForProperty("two"); |
| 186 ASSERT_TRUE(subsub); | 186 ASSERT_TRUE(subsub); |
| 187 EXPECT_EQ(base::Value::TYPE_INTEGER, subsub->type()); | 187 EXPECT_EQ(base::Value::TYPE_INTEGER, subsub->type()); |
| 188 subsub = sub->GetSchemaForProperty("undeclared"); | 188 subsub = sub->GetSchemaForProperty("undeclared"); |
| 189 ASSERT_TRUE(subsub); | 189 ASSERT_TRUE(subsub); |
| 190 EXPECT_EQ(base::Value::TYPE_STRING, subsub->type()); | 190 EXPECT_EQ(base::Value::TYPE_STRING, subsub->type()); |
| 191 } | 191 } |
| 192 | 192 |
| 193 } // namespace policy | 193 } // namespace policy |
| 194 | |
| OLD | NEW |