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

Unified Diff: chrome/browser/media/webrtc_rtp_dump_handler_unittest.cc

Issue 1551503002: Convert Pass()→std::move() in //chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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: chrome/browser/media/webrtc_rtp_dump_handler_unittest.cc
diff --git a/chrome/browser/media/webrtc_rtp_dump_handler_unittest.cc b/chrome/browser/media/webrtc_rtp_dump_handler_unittest.cc
index 9694aaba93b34d3ec8df70fd60d4dba12a444f18..19342388bd6fcb5f6db394b4afc1d4ebfa1936ab 100644
--- a/chrome/browser/media/webrtc_rtp_dump_handler_unittest.cc
+++ b/chrome/browser/media/webrtc_rtp_dump_handler_unittest.cc
@@ -2,8 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "chrome/browser/media/webrtc_rtp_dump_handler.h"
+
#include <stddef.h>
#include <stdint.h>
+#include <utility>
#include "base/bind.h"
#include "base/files/file_util.h"
@@ -14,7 +17,6 @@
#include "base/run_loop.h"
#include "base/single_thread_task_runner.h"
#include "base/thread_task_runner_handle.h"
-#include "chrome/browser/media/webrtc_rtp_dump_handler.h"
#include "chrome/browser/media/webrtc_rtp_dump_writer.h"
#include "content/public/test/test_browser_thread_bundle.h"
#include "testing/gmock/include/gmock/gmock.h"
@@ -82,7 +84,7 @@ class WebRtcRtpDumpHandlerTest : public testing::Test {
base::Unretained(handler_.get())),
end_dump_success));
- handler_->SetDumpWriterForTesting(writer.Pass());
+ handler_->SetDumpWriterForTesting(std::move(writer));
}
void DeleteDumpHandler() { handler_.reset(); }

Powered by Google App Engine
This is Rietveld 408576698