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/DataConsumerTee.h" | 5 #include "modules/fetch/DataConsumerTee.h" |
6 | 6 |
7 #include "core/testing/DummyPageHolder.h" | 7 #include "core/testing/DummyPageHolder.h" |
8 #include "core/testing/NullExecutionContext.h" | 8 #include "core/testing/NullExecutionContext.h" |
9 #include "modules/fetch/DataConsumerHandleTestUtil.h" | 9 #include "modules/fetch/DataConsumerHandleTestUtil.h" |
10 #include "platform/CrossThreadFunctional.h" | |
11 #include "platform/WaitableEvent.h" | 10 #include "platform/WaitableEvent.h" |
12 #include "platform/WebThreadSupportingGC.h" | 11 #include "platform/WebThreadSupportingGC.h" |
13 #include "public/platform/Platform.h" | 12 #include "public/platform/Platform.h" |
14 #include "public/platform/WebThread.h" | 13 #include "public/platform/WebThread.h" |
15 #include "public/platform/WebTraceLocation.h" | 14 #include "public/platform/WebTraceLocation.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
| 16 #include "wtf/Functional.h" |
17 #include "wtf/PassRefPtr.h" | 17 #include "wtf/PassRefPtr.h" |
18 #include "wtf/PtrUtil.h" | 18 #include "wtf/PtrUtil.h" |
19 #include "wtf/RefPtr.h" | 19 #include "wtf/RefPtr.h" |
20 #include <memory> | 20 #include <memory> |
21 #include <string.h> | 21 #include <string.h> |
22 #include <v8.h> | 22 #include <v8.h> |
23 | 23 |
24 namespace blink { | 24 namespace blink { |
25 namespace { | 25 namespace { |
26 | 26 |
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 std::unique_ptr<HandleReadResult> res2 = r2.wait(); | 410 std::unique_ptr<HandleReadResult> res2 = r2.wait(); |
411 | 411 |
412 EXPECT_EQ(kDone, res1->result()); | 412 EXPECT_EQ(kDone, res1->result()); |
413 EXPECT_EQ(0u, res1->data().size()); | 413 EXPECT_EQ(0u, res1->data().size()); |
414 EXPECT_EQ(kDone, res2->result()); | 414 EXPECT_EQ(kDone, res2->result()); |
415 EXPECT_EQ(0u, res2->data().size()); | 415 EXPECT_EQ(0u, res2->data().size()); |
416 } | 416 } |
417 | 417 |
418 } // namespace | 418 } // namespace |
419 } // namespace blink | 419 } // namespace blink |
OLD | NEW |