| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "core/streams/ReadableStreamOperations.h" | 5 #include "core/streams/ReadableStreamOperations.h" |
| 6 | 6 |
| 7 #include <v8.h> |
| 7 #include "bindings/core/v8/ExceptionState.h" | 8 #include "bindings/core/v8/ExceptionState.h" |
| 8 #include "bindings/core/v8/ScriptFunction.h" | 9 #include "bindings/core/v8/ScriptFunction.h" |
| 9 #include "bindings/core/v8/ScriptState.h" | 10 #include "bindings/core/v8/ScriptState.h" |
| 10 #include "bindings/core/v8/ScriptValue.h" | 11 #include "bindings/core/v8/ScriptValue.h" |
| 11 #include "bindings/core/v8/V8Binding.h" | 12 #include "bindings/core/v8/V8Binding.h" |
| 12 #include "bindings/core/v8/V8BindingForTesting.h" | 13 #include "bindings/core/v8/V8BindingForTesting.h" |
| 13 #include "bindings/core/v8/V8BindingMacros.h" | 14 #include "bindings/core/v8/V8BindingMacros.h" |
| 14 #include "bindings/core/v8/V8IteratorResultValue.h" | 15 #include "bindings/core/v8/V8IteratorResultValue.h" |
| 15 #include "bindings/core/v8/V8ThrowException.h" | 16 #include "bindings/core/v8/V8ThrowException.h" |
| 16 #include "core/dom/Document.h" | 17 #include "core/dom/Document.h" |
| 17 #include "core/streams/ReadableStreamController.h" | 18 #include "core/streams/ReadableStreamController.h" |
| 18 #include "core/streams/UnderlyingSourceBase.h" | 19 #include "core/streams/UnderlyingSourceBase.h" |
| 19 #include "platform/heap/Handle.h" | 20 #include "platform/heap/Handle.h" |
| 20 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
| 21 #include <v8.h> | |
| 22 | 22 |
| 23 namespace blink { | 23 namespace blink { |
| 24 | 24 |
| 25 namespace { | 25 namespace { |
| 26 | 26 |
| 27 class NotReached : public ScriptFunction { | 27 class NotReached : public ScriptFunction { |
| 28 public: | 28 public: |
| 29 static v8::Local<v8::Function> createFunction(ScriptState* scriptState) { | 29 static v8::Local<v8::Function> createFunction(ScriptState* scriptState) { |
| 30 NotReached* self = new NotReached(scriptState); | 30 NotReached* self = new NotReached(scriptState); |
| 31 return self->bindToV8Function(); | 31 return self->bindToV8Function(); |
| (...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 489 EXPECT_EQ("hello", it1->value()); | 489 EXPECT_EQ("hello", it1->value()); |
| 490 EXPECT_TRUE(it2->isSet()); | 490 EXPECT_TRUE(it2->isSet()); |
| 491 EXPECT_TRUE(it2->isValid()); | 491 EXPECT_TRUE(it2->isValid()); |
| 492 EXPECT_FALSE(it2->isDone()); | 492 EXPECT_FALSE(it2->isDone()); |
| 493 EXPECT_EQ("hello", it2->value()); | 493 EXPECT_EQ("hello", it2->value()); |
| 494 } | 494 } |
| 495 | 495 |
| 496 } // namespace | 496 } // namespace |
| 497 | 497 |
| 498 } // namespace blink | 498 } // namespace blink |
| OLD | NEW |