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

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

Issue 2804753005: Rewrite references to "wtf/" to "platform/wtf/" in bindings. (Closed)
Patch Set: 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/ToV8.h"
6 6
7 #include <limits>
7 #include "bindings/core/v8/V8Binding.h" 8 #include "bindings/core/v8/V8Binding.h"
8 #include "bindings/core/v8/V8BindingForTesting.h" 9 #include "bindings/core/v8/V8BindingForTesting.h"
9 #include "core/testing/GarbageCollectedScriptWrappable.h" 10 #include "core/testing/GarbageCollectedScriptWrappable.h"
10 #include "platform/heap/Heap.h" 11 #include "platform/heap/Heap.h"
12 #include "platform/wtf/Vector.h"
11 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
12 #include "wtf/Vector.h"
13 #include <limits>
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 {
19 19
20 namespace { 20 namespace {
21 21
22 template <typename T> 22 template <typename T>
23 void testToV8(V8TestingScope* scope, 23 void testToV8(V8TestingScope* scope,
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 v8::Local<v8::Value> actual = ToV8(value, scope.getScriptState()); 294 v8::Local<v8::Value> actual = ToV8(value, scope.getScriptState());
295 EXPECT_FALSE(actual.IsEmpty()); 295 EXPECT_FALSE(actual.IsEmpty());
296 296
297 double actualAsNumber = actual.As<v8::Number>()->Value(); 297 double actualAsNumber = actual.As<v8::Number>()->Value();
298 EXPECT_EQ(1234.0, actualAsNumber); 298 EXPECT_EQ(1234.0, actualAsNumber);
299 } 299 }
300 300
301 } // namespace 301 } // namespace
302 302
303 } // namespace blink 303 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/bindings/core/v8/ToV8.h ('k') | third_party/WebKit/Source/bindings/core/v8/Transferables.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698