| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "modules/fetch/ReadableStreamBytesConsumer.h" | 5 #include "modules/fetch/ReadableStreamBytesConsumer.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "bindings/core/v8/V8BindingForCore.h" | 9 #include "bindings/core/v8/V8BindingForCore.h" |
| 10 #include "bindings/core/v8/V8BindingMacros.h" | |
| 11 #include "bindings/core/v8/V8GCController.h" | 10 #include "bindings/core/v8/V8GCController.h" |
| 12 #include "core/dom/Document.h" | 11 #include "core/dom/Document.h" |
| 13 #include "core/streams/ReadableStreamOperations.h" | 12 #include "core/streams/ReadableStreamOperations.h" |
| 14 #include "core/testing/DummyPageHolder.h" | 13 #include "core/testing/DummyPageHolder.h" |
| 15 #include "modules/fetch/BytesConsumerTestUtil.h" | 14 #include "modules/fetch/BytesConsumerTestUtil.h" |
| 16 #include "platform/bindings/ScriptState.h" | 15 #include "platform/bindings/ScriptState.h" |
| 16 #include "platform/bindings/V8BindingMacros.h" |
| 17 #include "platform/heap/Handle.h" | 17 #include "platform/heap/Handle.h" |
| 18 #include "platform/testing/UnitTestHelpers.h" | 18 #include "platform/testing/UnitTestHelpers.h" |
| 19 #include "testing/gmock/include/gmock/gmock.h" | 19 #include "testing/gmock/include/gmock/gmock.h" |
| 20 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
| 21 #include "v8/include/v8.h" | 21 #include "v8/include/v8.h" |
| 22 | 22 |
| 23 namespace blink { | 23 namespace blink { |
| 24 | 24 |
| 25 namespace { | 25 namespace { |
| 26 | 26 |
| (...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 checkpoint.Call(3); | 370 checkpoint.Call(3); |
| 371 testing::RunPendingTasks(); | 371 testing::RunPendingTasks(); |
| 372 checkpoint.Call(4); | 372 checkpoint.Call(4); |
| 373 EXPECT_EQ(PublicState::kErrored, consumer->GetPublicState()); | 373 EXPECT_EQ(PublicState::kErrored, consumer->GetPublicState()); |
| 374 EXPECT_EQ(Result::kError, consumer->BeginRead(&buffer, &available)); | 374 EXPECT_EQ(Result::kError, consumer->BeginRead(&buffer, &available)); |
| 375 } | 375 } |
| 376 | 376 |
| 377 } // namespace | 377 } // namespace |
| 378 | 378 |
| 379 } // namespace blink | 379 } // namespace blink |
| OLD | NEW |