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

Side by Side Diff: third_party/WebKit/Source/platform/instrumentation/tracing/TracedValueTest.cpp

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/instrumentation/tracing/TracedValue.h" 5 #include "platform/instrumentation/tracing/TracedValue.h"
6 6
7 #include <memory>
7 #include "base/json/json_reader.h" 8 #include "base/json/json_reader.h"
8 #include "base/values.h" 9 #include "base/values.h"
9 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
10 #include <memory>
11 11
12 namespace blink { 12 namespace blink {
13 13
14 std::unique_ptr<base::Value> parseTracedValue( 14 std::unique_ptr<base::Value> parseTracedValue(
15 std::unique_ptr<TracedValue> value) { 15 std::unique_ptr<TracedValue> value) {
16 base::JSONReader reader; 16 base::JSONReader reader;
17 CString utf8 = value->toString().utf8(); 17 CString utf8 = value->toString().utf8();
18 return reader.Read(utf8.data()); 18 return reader.Read(utf8.data());
19 } 19 }
20 20
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 EXPECT_EQ("\"value2\"", s2); 121 EXPECT_EQ("\"value2\"", s2);
122 std::string s3; 122 std::string s3;
123 EXPECT_TRUE(dictionary->GetString("s3\\", &s3)); 123 EXPECT_TRUE(dictionary->GetString("s3\\", &s3));
124 EXPECT_EQ("value3", s3); 124 EXPECT_EQ("value3", s3);
125 std::string s4; 125 std::string s4;
126 EXPECT_TRUE(dictionary->GetString("\"s4\"", &s4)); 126 EXPECT_TRUE(dictionary->GetString("\"s4\"", &s4));
127 EXPECT_EQ("value4", s4); 127 EXPECT_EQ("value4", s4);
128 } 128 }
129 129
130 } // namespace blink 130 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698