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

Side by Side Diff: tools/json_schema_compiler/test/choices_unittest.cc

Issue 1549203002: Switch to standard integer types in tools/. (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
OLDNEW
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
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
OLDNEW
« no previous file with comments | « tools/json_schema_compiler/test/arrays_unittest.cc ('k') | tools/json_schema_compiler/test/objects_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698