| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |