| 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 <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "bindings/core/v8/ScriptState.h" | 10 #include "bindings/core/v8/ScriptState.h" |
| 11 #include "core/testing/NullExecutionContext.h" | 11 #include "core/testing/NullExecutionContext.h" |
| 12 #include "gin/public/isolate_holder.h" | 12 #include "gin/public/isolate_holder.h" |
| 13 #include "platform/CrossThreadFunctional.h" | 13 #include "platform/CrossThreadFunctional.h" |
| 14 #include "platform/WaitableEvent.h" | 14 #include "platform/WaitableEvent.h" |
| 15 #include "platform/WebThreadSupportingGC.h" | 15 #include "platform/WebThreadSupportingGC.h" |
| 16 #include "platform/heap/Handle.h" | 16 #include "platform/heap/Handle.h" |
| 17 #include "platform/wtf/Deque.h" |
| 18 #include "platform/wtf/Locker.h" |
| 19 #include "platform/wtf/PtrUtil.h" |
| 20 #include "platform/wtf/ThreadSafeRefCounted.h" |
| 21 #include "platform/wtf/ThreadingPrimitives.h" |
| 22 #include "platform/wtf/Vector.h" |
| 23 #include "platform/wtf/text/StringBuilder.h" |
| 17 #include "public/platform/Platform.h" | 24 #include "public/platform/Platform.h" |
| 18 #include "public/platform/WebDataConsumerHandle.h" | 25 #include "public/platform/WebDataConsumerHandle.h" |
| 19 #include "public/platform/WebTraceLocation.h" | 26 #include "public/platform/WebTraceLocation.h" |
| 20 #include "testing/gmock/include/gmock/gmock.h" | 27 #include "testing/gmock/include/gmock/gmock.h" |
| 21 #include "testing/gtest/include/gtest/gtest.h" | 28 #include "testing/gtest/include/gtest/gtest.h" |
| 22 #include "v8/include/v8.h" | 29 #include "v8/include/v8.h" |
| 23 #include "wtf/Deque.h" | |
| 24 #include "wtf/Locker.h" | |
| 25 #include "wtf/PtrUtil.h" | |
| 26 #include "wtf/ThreadSafeRefCounted.h" | |
| 27 #include "wtf/ThreadingPrimitives.h" | |
| 28 #include "wtf/Vector.h" | |
| 29 #include "wtf/text/StringBuilder.h" | |
| 30 | 30 |
| 31 namespace blink { | 31 namespace blink { |
| 32 | 32 |
| 33 class DataConsumerHandleTestUtil { | 33 class DataConsumerHandleTestUtil { |
| 34 STATIC_ONLY(DataConsumerHandleTestUtil); | 34 STATIC_ONLY(DataConsumerHandleTestUtil); |
| 35 | 35 |
| 36 public: | 36 public: |
| 37 class NoopClient final : public WebDataConsumerHandle::Client { | 37 class NoopClient final : public WebDataConsumerHandle::Client { |
| 38 DISALLOW_NEW(); | 38 DISALLOW_NEW(); |
| 39 | 39 |
| (...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 516 std::unique_ptr<T> handle_reader_; | 516 std::unique_ptr<T> handle_reader_; |
| 517 }; | 517 }; |
| 518 | 518 |
| 519 static std::unique_ptr<WebDataConsumerHandle> | 519 static std::unique_ptr<WebDataConsumerHandle> |
| 520 CreateWaitingDataConsumerHandle(); | 520 CreateWaitingDataConsumerHandle(); |
| 521 }; | 521 }; |
| 522 | 522 |
| 523 } // namespace blink | 523 } // namespace blink |
| 524 | 524 |
| 525 #endif // DataConsumerHandleTestUtil_h | 525 #endif // DataConsumerHandleTestUtil_h |
| OLD | NEW |