| OLD | NEW |
| 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 "bindings/core/v8/ToV8ForCore.h" | 5 #include "bindings/core/v8/ToV8ForCore.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 #include "bindings/core/v8/V8Binding.h" | 8 #include "bindings/core/v8/V8BindingForCore.h" |
| 9 #include "bindings/core/v8/V8BindingForTesting.h" | 9 #include "bindings/core/v8/V8BindingForTesting.h" |
| 10 #include "core/testing/GarbageCollectedScriptWrappable.h" | 10 #include "core/testing/GarbageCollectedScriptWrappable.h" |
| 11 #include "platform/heap/Heap.h" | 11 #include "platform/heap/Heap.h" |
| 12 #include "platform/wtf/Vector.h" | 12 #include "platform/wtf/Vector.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 14 | 14 |
| 15 #define TEST_TOV8(expected, value) \ | 15 #define TEST_TOV8(expected, value) \ |
| 16 TestToV8(&scope, expected, value, __FILE__, __LINE__) | 16 TestToV8(&scope, expected, value, __FILE__, __LINE__) |
| 17 | 17 |
| 18 namespace blink { | 18 namespace blink { |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 v8::Local<v8::Value> actual = ToV8(value, scope.GetScriptState()); | 298 v8::Local<v8::Value> actual = ToV8(value, scope.GetScriptState()); |
| 299 EXPECT_FALSE(actual.IsEmpty()); | 299 EXPECT_FALSE(actual.IsEmpty()); |
| 300 | 300 |
| 301 double actual_as_number = actual.As<v8::Number>()->Value(); | 301 double actual_as_number = actual.As<v8::Number>()->Value(); |
| 302 EXPECT_EQ(1234.0, actual_as_number); | 302 EXPECT_EQ(1234.0, actual_as_number); |
| 303 } | 303 } |
| 304 | 304 |
| 305 } // namespace | 305 } // namespace |
| 306 | 306 |
| 307 } // namespace blink | 307 } // namespace blink |
| OLD | NEW |