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

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/NativeValueTraitsImplTest.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 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698