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

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

Issue 1543423002: Switch to standard integer types in components/policy/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
« no previous file with comments | « components/policy/core/common/schema_registry_tracking_policy_provider.h ('k') | no next file » | 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 "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
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
OLDNEW
« no previous file with comments | « components/policy/core/common/schema_registry_tracking_policy_provider.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698