Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(283)

Side by Side Diff: third_party/WebKit/Source/modules/fetch/DataConsumerHandleTestUtil.h

Issue 2823203003: Replace ASSERT_NOT_REACHED with NOTREACHED in modules/fetch (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/fetch/FetchManager.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/fetch/FetchManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698