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/ScriptState.h" | 9 #include "bindings/core/v8/ScriptState.h" |
| 10 #include "bindings/core/v8/V8Binding.h" |
10 #include "bindings/core/v8/V8BindingMacros.h" | 11 #include "bindings/core/v8/V8BindingMacros.h" |
11 #include "bindings/core/v8/V8GCController.h" | 12 #include "bindings/core/v8/V8GCController.h" |
12 #include "core/dom/Document.h" | 13 #include "core/dom/Document.h" |
13 #include "core/streams/ReadableStreamOperations.h" | 14 #include "core/streams/ReadableStreamOperations.h" |
14 #include "core/testing/DummyPageHolder.h" | 15 #include "core/testing/DummyPageHolder.h" |
15 #include "modules/fetch/BytesConsumerTestUtil.h" | 16 #include "modules/fetch/BytesConsumerTestUtil.h" |
16 #include "platform/heap/Handle.h" | 17 #include "platform/heap/Handle.h" |
17 #include "platform/testing/UnitTestHelpers.h" | 18 #include "platform/testing/UnitTestHelpers.h" |
18 #include "testing/gmock/include/gmock/gmock.h" | 19 #include "testing/gmock/include/gmock/gmock.h" |
19 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 checkpoint.Call(3); | 370 checkpoint.Call(3); |
370 testing::runPendingTasks(); | 371 testing::runPendingTasks(); |
371 checkpoint.Call(4); | 372 checkpoint.Call(4); |
372 EXPECT_EQ(PublicState::Errored, consumer->getPublicState()); | 373 EXPECT_EQ(PublicState::Errored, consumer->getPublicState()); |
373 EXPECT_EQ(Result::Error, consumer->beginRead(&buffer, &available)); | 374 EXPECT_EQ(Result::Error, consumer->beginRead(&buffer, &available)); |
374 } | 375 } |
375 | 376 |
376 } // namespace | 377 } // namespace |
377 | 378 |
378 } // namespace blink | 379 } // namespace blink |
OLD | NEW |