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/inspector_protocol/Parser.h" | 5 #include "platform/inspector_protocol/InspectorProtocol.h" |
6 | |
7 #include "platform/inspector_protocol/String16.h" | |
8 #include "platform/inspector_protocol/Values.h" | |
9 #include "testing/gtest/include/gtest/gtest.h" | 6 #include "testing/gtest/include/gtest/gtest.h" |
10 | 7 |
11 namespace blink { | 8 namespace blink { |
12 namespace protocol { | 9 namespace protocol { |
13 | 10 |
14 TEST(ParserTest, Reading) | 11 TEST(ParserTest, Reading) |
15 { | 12 { |
16 protocol::Value* tmpValue; | 13 protocol::Value* tmpValue; |
17 std::unique_ptr<protocol::Value> root; | 14 std::unique_ptr<protocol::Value> root; |
18 std::unique_ptr<protocol::Value> root2; | 15 std::unique_ptr<protocol::Value> root2; |
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
495 }; | 492 }; |
496 | 493 |
497 for (size_t i = 0; i < 11; ++i) { | 494 for (size_t i = 0; i < 11; ++i) { |
498 std::unique_ptr<protocol::Value> result = parseJSON(invalidJson[i]); | 495 std::unique_ptr<protocol::Value> result = parseJSON(invalidJson[i]); |
499 EXPECT_FALSE(result.get()); | 496 EXPECT_FALSE(result.get()); |
500 } | 497 } |
501 } | 498 } |
502 | 499 |
503 } // namespace protocol | 500 } // namespace protocol |
504 } // namespace blink | 501 } // namespace blink |
OLD | NEW |