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

Side by Side Diff: third_party/WebKit/Source/platform/inspector_protocol/ParserTest.cpp

Issue 2238423002: [DevTools] Generate all files in inspector_protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2240663003
Patch Set: Created 4 years, 4 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/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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698