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

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/V8ObjectBuilderTest.cpp

Issue 2834053003: Split V8Binding (Closed)
Patch Set: Rebase Created 3 years, 8 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 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 "bindings/core/v8/V8ObjectBuilder.h" 5 #include "bindings/core/v8/V8ObjectBuilder.h"
6 6
7 #include "bindings/core/v8/V8Binding.h" 7 #include "bindings/core/v8/V8BindingForCore.h"
8 #include "bindings/core/v8/V8BindingForTesting.h" 8 #include "bindings/core/v8/V8BindingForTesting.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 namespace { 13 namespace {
14 14
15 TEST(V8ObjectBuilderTest, addNull) { 15 TEST(V8ObjectBuilderTest, addNull) {
16 V8TestingScope scope; 16 V8TestingScope scope;
17 ScriptState* script_state = scope.GetScriptState(); 17 ScriptState* script_state = scope.GetScriptState();
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 .ToLocalChecked(), 116 .ToLocalChecked(),
117 kDoNotExternalize); 117 kDoNotExternalize);
118 118
119 String expected = "{\"builder\":{\"n1\":123,\"n2\":123.456}}"; 119 String expected = "{\"builder\":{\"n1\":123,\"n2\":123.456}}";
120 EXPECT_EQ(expected, json_string); 120 EXPECT_EQ(expected, json_string);
121 } 121 }
122 122
123 } // namespace 123 } // namespace
124 124
125 } // namespace blink 125 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698