| 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" |
| (...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 | 314 |
| 315 private: | 315 private: |
| 316 ThreadingHandleNoNotificationTest() = default; | 316 ThreadingHandleNoNotificationTest() = default; |
| 317 void ObtainReader() { | 317 void ObtainReader() { |
| 318 reader_ = handle_->ObtainReader(this); | 318 reader_ = handle_->ObtainReader(this); |
| 319 reader_ = nullptr; | 319 reader_ = nullptr; |
| 320 PostTaskToReadingThread( | 320 PostTaskToReadingThread( |
| 321 BLINK_FROM_HERE, | 321 BLINK_FROM_HERE, |
| 322 CrossThreadBind(&Self::SignalDone, WrapPassRefPtr(this))); | 322 CrossThreadBind(&Self::SignalDone, WrapPassRefPtr(this))); |
| 323 } | 323 } |
| 324 void DidGetReadable() override { ASSERT_NOT_REACHED(); } | 324 void DidGetReadable() override { NOTREACHED(); } |
| 325 | 325 |
| 326 std::unique_ptr<WebDataConsumerHandle> handle_; | 326 std::unique_ptr<WebDataConsumerHandle> handle_; |
| 327 }; | 327 }; |
| 328 | 328 |
| 329 class Command final { | 329 class Command final { |
| 330 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); | 330 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
| 331 | 331 |
| 332 public: | 332 public: |
| 333 enum Name { | 333 enum Name { |
| 334 kData, | 334 kData, |
| (...skipping 181 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 |