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

Side by Side Diff: third_party/WebKit/Source/platform/json/JSONParserTest.cpp

Issue 2293493003: Move blink platform's JSON code into a directory. (Closed)
Patch Set: Created 4 years, 3 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) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 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 "platform/JSONParser.h" 5 #include "platform/json/JSONParser.h"
6 6
7 #include "platform/JSONValues.h" 7 #include "platform/json/JSONValues.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 #include "wtf/text/StringBuilder.h" 9 #include "wtf/text/StringBuilder.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 TEST(JSONParserTest, Reading) 13 TEST(JSONParserTest, Reading)
14 { 14 {
15 JSONValue* tmpValue; 15 JSONValue* tmpValue;
16 std::unique_ptr<JSONValue> root; 16 std::unique_ptr<JSONValue> root;
17 std::unique_ptr<JSONValue> root2; 17 std::unique_ptr<JSONValue> root2;
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 "//**/" 493 "//**/"
494 }; 494 };
495 495
496 for (size_t i = 0; i < WTF_ARRAY_LENGTH(invalidJson); ++i) { 496 for (size_t i = 0; i < WTF_ARRAY_LENGTH(invalidJson); ++i) {
497 std::unique_ptr<JSONValue> result = parseJSON(invalidJson[i]); 497 std::unique_ptr<JSONValue> result = parseJSON(invalidJson[i]);
498 EXPECT_FALSE(result.get()); 498 EXPECT_FALSE(result.get());
499 } 499 }
500 } 500 }
501 501
502 } // namespace blink 502 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/json/JSONParser.cpp ('k') | third_party/WebKit/Source/platform/json/JSONValues.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698