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 "config.h" | |
6 #include "modules/fetch/DataConsumerHandleUtil.h" | 5 #include "modules/fetch/DataConsumerHandleUtil.h" |
7 | 6 |
8 #include "modules/fetch/DataConsumerHandleTestUtil.h" | 7 #include "modules/fetch/DataConsumerHandleTestUtil.h" |
9 | 8 |
10 namespace blink { | 9 namespace blink { |
11 | 10 |
12 namespace { | 11 namespace { |
13 | 12 |
14 const WebDataConsumerHandle::Result kShouldWait = WebDataConsumerHandle::ShouldW
ait; | 13 const WebDataConsumerHandle::Result kShouldWait = WebDataConsumerHandle::ShouldW
ait; |
15 const WebDataConsumerHandle::Result kDone = WebDataConsumerHandle::Done; | 14 const WebDataConsumerHandle::Result kDone = WebDataConsumerHandle::Done; |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 TEST(DataConsumerHandleUtilTest, UnexpectedErrorHandleNoNotification) | 85 TEST(DataConsumerHandleUtilTest, UnexpectedErrorHandleNoNotification) |
87 { | 86 { |
88 RefPtr<DataConsumerHandleTestUtil::ThreadingHandleNoNotificationTest> test =
DataConsumerHandleTestUtil::ThreadingHandleNoNotificationTest::create(); | 87 RefPtr<DataConsumerHandleTestUtil::ThreadingHandleNoNotificationTest> test =
DataConsumerHandleTestUtil::ThreadingHandleNoNotificationTest::create(); |
89 // Test this function doesn't crash. | 88 // Test this function doesn't crash. |
90 test->run(createUnexpectedErrorDataConsumerHandle()); | 89 test->run(createUnexpectedErrorDataConsumerHandle()); |
91 } | 90 } |
92 | 91 |
93 } // namespace | 92 } // namespace |
94 | 93 |
95 } // namespace blink | 94 } // namespace blink |
OLD | NEW |