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