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