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

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

Issue 2809243002: Split ToV8.h (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 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/ToV8.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/V8Binding.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) \
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698