| 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 #ifndef BytesConsumerTestUtil_h | 5 #ifndef BytesConsumerTestUtil_h |
| 6 #define BytesConsumerTestUtil_h | 6 #define BytesConsumerTestUtil_h |
| 7 | 7 |
| 8 #include "modules/fetch/BytesConsumer.h" | 8 #include "modules/fetch/BytesConsumer.h" |
| 9 #include "modules/fetch/FetchDataLoader.h" | 9 #include "modules/fetch/FetchDataLoader.h" |
| 10 #include "platform/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
| 11 #include "platform/wtf/Deque.h" |
| 12 #include "platform/wtf/Vector.h" |
| 11 #include "testing/gmock/include/gmock/gmock.h" | 13 #include "testing/gmock/include/gmock/gmock.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 13 #include "wtf/Deque.h" | |
| 14 #include "wtf/Vector.h" | |
| 15 | 15 |
| 16 namespace blink { | 16 namespace blink { |
| 17 | 17 |
| 18 class ExecutionContext; | 18 class ExecutionContext; |
| 19 | 19 |
| 20 class BytesConsumerTestUtil { | 20 class BytesConsumerTestUtil { |
| 21 STATIC_ONLY(BytesConsumerTestUtil); | 21 STATIC_ONLY(BytesConsumerTestUtil); |
| 22 | 22 |
| 23 public: | 23 public: |
| 24 class MockBytesConsumer : public BytesConsumer { | 24 class MockBytesConsumer : public BytesConsumer { |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 private: | 158 private: |
| 159 Member<BytesConsumer> consumer_; | 159 Member<BytesConsumer> consumer_; |
| 160 BytesConsumer::Result result_ = BytesConsumer::Result::kShouldWait; | 160 BytesConsumer::Result result_ = BytesConsumer::Result::kShouldWait; |
| 161 Vector<char> data_; | 161 Vector<char> data_; |
| 162 }; | 162 }; |
| 163 }; | 163 }; |
| 164 | 164 |
| 165 } // namespace blink | 165 } // namespace blink |
| 166 | 166 |
| 167 #endif // BytesConsumerTestUtil_h | 167 #endif // BytesConsumerTestUtil_h |
| OLD | NEW |