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

Side by Side Diff: components/policy/core/common/policy_schema_unittest.cc

Issue 23045003: Moved chrome/common/policy to components/policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « components/policy/core/common/policy_schema.cc ('k') | components/policy/policy_export.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « components/policy/core/common/policy_schema.cc ('k') | components/policy/policy_export.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698