| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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/NativeValueTraitsImpl.h" | 5 #include "bindings/core/v8/NativeValueTraitsImpl.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 #include "bindings/core/v8/ExceptionState.h" | 8 #include "bindings/core/v8/ExceptionState.h" |
| 9 #include "bindings/core/v8/IDLTypes.h" | 9 #include "bindings/core/v8/IDLTypes.h" |
| 10 #include "bindings/core/v8/ToV8.h" | 10 #include "bindings/core/v8/ToV8.h" |
| 11 #include "bindings/core/v8/V8BindingForTesting.h" | 11 #include "bindings/core/v8/V8BindingForTesting.h" |
| 12 #include "platform/wtf/Vector.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 13 #include "wtf/Vector.h" | |
| 14 | 14 |
| 15 namespace blink { | 15 namespace blink { |
| 16 | 16 |
| 17 namespace { | 17 namespace { |
| 18 | 18 |
| 19 template <typename T> | 19 template <typename T> |
| 20 v8::Local<v8::Value> ToV8(V8TestingScope* scope, T value) { | 20 v8::Local<v8::Value> ToV8(V8TestingScope* scope, T value) { |
| 21 return blink::ToV8(value, scope->context()->Global(), scope->isolate()); | 21 return blink::ToV8(value, scope->context()->Global(), scope->isolate()); |
| 22 } | 22 } |
| 23 | 23 |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 EXPECT_EQ(1U, record.size()); | 236 EXPECT_EQ(1U, record.size()); |
| 237 EXPECT_EQ("foo", record[0].first); | 237 EXPECT_EQ("foo", record[0].first); |
| 238 EXPECT_EQ("Hello, World!", record[0].second[0]); | 238 EXPECT_EQ("Hello, World!", record[0].second[0]); |
| 239 EXPECT_EQ("Hi, Mom!", record[0].second[1]); | 239 EXPECT_EQ("Hi, Mom!", record[0].second[1]); |
| 240 } | 240 } |
| 241 } | 241 } |
| 242 | 242 |
| 243 } // namespace | 243 } // namespace |
| 244 | 244 |
| 245 } // namespace blink | 245 } // namespace blink |
| OLD | NEW |