| 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 #include "modules/fetch/CompositeDataConsumerHandle.h" | 5 #include "modules/fetch/CompositeDataConsumerHandle.h" |
| 6 | 6 |
| 7 #include "modules/fetch/DataConsumerHandleTestUtil.h" | 7 #include "modules/fetch/DataConsumerHandleTestUtil.h" |
| 8 #include "platform/CrossThreadFunctional.h" | |
| 9 #include "platform/WaitableEvent.h" | 8 #include "platform/WaitableEvent.h" |
| 10 #include "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
| 11 #include "public/platform/Platform.h" | 10 #include "public/platform/Platform.h" |
| 12 #include "public/platform/WebThread.h" | 11 #include "public/platform/WebThread.h" |
| 13 #include "public/platform/WebTraceLocation.h" | 12 #include "public/platform/WebTraceLocation.h" |
| 14 #include "testing/gmock/include/gmock/gmock.h" | 13 #include "testing/gmock/include/gmock/gmock.h" |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 15 #include "wtf/Functional.h" |
| 16 #include "wtf/Locker.h" | 16 #include "wtf/Locker.h" |
| 17 #include "wtf/PtrUtil.h" | 17 #include "wtf/PtrUtil.h" |
| 18 #include <memory> | 18 #include <memory> |
| 19 | 19 |
| 20 namespace blink { | 20 namespace blink { |
| 21 | 21 |
| 22 namespace { | 22 namespace { |
| 23 | 23 |
| 24 using ::testing::InSequence; | 24 using ::testing::InSequence; |
| 25 using ::testing::Return; | 25 using ::testing::Return; |
| (...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 490 { | 490 { |
| 491 RefPtr<DataConsumerHandleTestUtil::ThreadingHandleNoNotificationTest> test =
DataConsumerHandleTestUtil::ThreadingHandleNoNotificationTest::create(); | 491 RefPtr<DataConsumerHandleTestUtil::ThreadingHandleNoNotificationTest> test =
DataConsumerHandleTestUtil::ThreadingHandleNoNotificationTest::create(); |
| 492 CompositeDataConsumerHandle::Updater* updater = nullptr; | 492 CompositeDataConsumerHandle::Updater* updater = nullptr; |
| 493 // Test this function doesn't crash. | 493 // Test this function doesn't crash. |
| 494 test->run(CompositeDataConsumerHandle::create(createDoneDataConsumerHandle()
, &updater)); | 494 test->run(CompositeDataConsumerHandle::create(createDoneDataConsumerHandle()
, &updater)); |
| 495 } | 495 } |
| 496 | 496 |
| 497 } // namespace | 497 } // namespace |
| 498 | 498 |
| 499 } // namespace blink | 499 } // namespace blink |
| OLD | NEW |