OLD | NEW |
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 "modules/fetch/BodyStreamBuffer.h" | 5 #include "modules/fetch/BodyStreamBuffer.h" |
6 | 6 |
| 7 #include <memory> |
7 #include "bindings/core/v8/V8BindingForTesting.h" | 8 #include "bindings/core/v8/V8BindingForTesting.h" |
8 #include "core/dom/Document.h" | 9 #include "core/dom/Document.h" |
9 #include "core/html/FormData.h" | 10 #include "core/html/FormData.h" |
10 #include "modules/fetch/BlobBytesConsumer.h" | 11 #include "modules/fetch/BlobBytesConsumer.h" |
11 #include "modules/fetch/BytesConsumerTestUtil.h" | 12 #include "modules/fetch/BytesConsumerTestUtil.h" |
12 #include "modules/fetch/FormDataBytesConsumer.h" | 13 #include "modules/fetch/FormDataBytesConsumer.h" |
13 #include "platform/blob/BlobData.h" | 14 #include "platform/blob/BlobData.h" |
14 #include "platform/blob/BlobURL.h" | 15 #include "platform/blob/BlobURL.h" |
15 #include "platform/network/EncodedFormData.h" | 16 #include "platform/network/EncodedFormData.h" |
16 #include "platform/testing/UnitTestHelpers.h" | 17 #include "platform/testing/UnitTestHelpers.h" |
17 #include "testing/gmock/include/gmock/gmock.h" | 18 #include "testing/gmock/include/gmock/gmock.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
19 #include "wtf/PtrUtil.h" | 20 #include "wtf/PtrUtil.h" |
20 #include <memory> | |
21 | 21 |
22 namespace blink { | 22 namespace blink { |
23 | 23 |
24 namespace { | 24 namespace { |
25 | 25 |
26 using ::testing::ByMove; | 26 using ::testing::ByMove; |
27 using ::testing::InSequence; | 27 using ::testing::InSequence; |
28 using ::testing::Return; | 28 using ::testing::Return; |
29 using ::testing::_; | 29 using ::testing::_; |
30 using ::testing::SaveArg; | 30 using ::testing::SaveArg; |
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
476 ScriptValue reason(scope.getScriptState(), | 476 ScriptValue reason(scope.getScriptState(), |
477 v8String(scope.getScriptState()->isolate(), "reason")); | 477 v8String(scope.getScriptState()->isolate(), "reason")); |
478 EXPECT_FALSE(consumer->isCancelled()); | 478 EXPECT_FALSE(consumer->isCancelled()); |
479 buffer->cancel(scope.getScriptState(), reason); | 479 buffer->cancel(scope.getScriptState(), reason); |
480 EXPECT_TRUE(consumer->isCancelled()); | 480 EXPECT_TRUE(consumer->isCancelled()); |
481 } | 481 } |
482 | 482 |
483 } // namespace | 483 } // namespace |
484 | 484 |
485 } // namespace blink | 485 } // namespace blink |
OLD | NEW |