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 #ifndef DataConsumerHandleTestUtil_h | 5 #ifndef DataConsumerHandleTestUtil_h |
6 #define DataConsumerHandleTestUtil_h | 6 #define DataConsumerHandleTestUtil_h |
7 | 7 |
8 #include "bindings/core/v8/ScriptState.h" | 8 #include "bindings/core/v8/ScriptState.h" |
9 #include "core/testing/NullExecutionContext.h" | 9 #include "core/testing/NullExecutionContext.h" |
10 #include "gin/public/isolate_holder.h" | 10 #include "gin/public/isolate_holder.h" |
11 #include "modules/fetch/DataConsumerHandleUtil.h" | 11 #include "modules/fetch/DataConsumerHandleUtil.h" |
12 #include "modules/fetch/FetchDataConsumerHandle.h" | 12 #include "modules/fetch/FetchDataConsumerHandle.h" |
13 #include "modules/fetch/FetchDataLoader.h" | 13 #include "modules/fetch/FetchDataLoader.h" |
14 #include "platform/CrossThreadFunctional.h" | 14 #include "platform/CrossThreadFunctional.h" |
15 #include "platform/WaitableEvent.h" | 15 #include "platform/WaitableEvent.h" |
16 #include "platform/WebThreadSupportingGC.h" | 16 #include "platform/WebThreadSupportingGC.h" |
17 #include "platform/heap/Handle.h" | 17 #include "platform/heap/Handle.h" |
18 #include "public/platform/Platform.h" | 18 #include "public/platform/Platform.h" |
19 #include "public/platform/WebDataConsumerHandle.h" | 19 #include "public/platform/WebDataConsumerHandle.h" |
20 #include "public/platform/WebTraceLocation.h" | 20 #include "public/platform/WebTraceLocation.h" |
21 #include "wtf/Deque.h" | 21 #include "wtf/Deque.h" |
22 #include "wtf/Locker.h" | 22 #include "wtf/Locker.h" |
23 #include "wtf/PtrUtil.h" | 23 #include "wtf/PtrUtil.h" |
24 #include "wtf/ThreadSafeRefCounted.h" | 24 #include "wtf/ThreadSafeRefCounted.h" |
25 #include "wtf/ThreadingPrimitives.h" | 25 #include "wtf/ThreadingPrimitives.h" |
26 #include "wtf/Vector.h" | 26 #include "wtf/Vector.h" |
| 27 #include "wtf/text/StringBuilder.h" |
27 #include <gmock/gmock.h> | 28 #include <gmock/gmock.h> |
28 #include <gtest/gtest.h> | 29 #include <gtest/gtest.h> |
29 #include <memory> | 30 #include <memory> |
30 #include <v8.h> | 31 #include <v8.h> |
31 | 32 |
32 namespace blink { | 33 namespace blink { |
33 | 34 |
34 class DataConsumerHandleTestUtil { | 35 class DataConsumerHandleTestUtil { |
35 STATIC_ONLY(DataConsumerHandleTestUtil); | 36 STATIC_ONLY(DataConsumerHandleTestUtil); |
36 public: | 37 public: |
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
541 std::unique_ptr<HandleReadResult> m_result; | 542 std::unique_ptr<HandleReadResult> m_result; |
542 bool m_isDone; | 543 bool m_isDone; |
543 | 544 |
544 std::unique_ptr<T> m_handleReader; | 545 std::unique_ptr<T> m_handleReader; |
545 }; | 546 }; |
546 }; | 547 }; |
547 | 548 |
548 } // namespace blink | 549 } // namespace blink |
549 | 550 |
550 #endif // DataConsumerHandleTestUtil_h | 551 #endif // DataConsumerHandleTestUtil_h |
OLD | NEW |