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

Unified Diff: third_party/WebKit/Source/modules/fetch/BytesConsumerTest.cpp

Issue 2870543002: Removed PassRefPtr to RefPtr copies from unit tests. (Closed)
Patch Set: Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/fetch/BytesConsumerTest.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/BytesConsumerTest.cpp b/third_party/WebKit/Source/modules/fetch/BytesConsumerTest.cpp
index 76e513d6b42fac0b46d1ebf6be2525a5b8c28252..4c7bb3864b2b254a7467d93910af5487157344be 100644
--- a/third_party/WebKit/Source/modules/fetch/BytesConsumerTest.cpp
+++ b/third_party/WebKit/Source/modules/fetch/BytesConsumerTest.cpp
@@ -48,7 +48,7 @@ class BytesConsumerTeeTest : public ::testing::Test {
class FakeBlobBytesConsumer : public BytesConsumer {
public:
explicit FakeBlobBytesConsumer(PassRefPtr<BlobDataHandle> handle)
- : blob_handle_(handle) {}
+ : blob_handle_(std::move(handle)) {}
~FakeBlobBytesConsumer() override {}
Result BeginRead(const char** buffer, size_t* available) override {

Powered by Google App Engine
This is Rietveld 408576698