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

Unified Diff: media/base/media_file_checker_unittest.cc

Issue 1544313002: Convert Pass()→std::move() in //media (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
« no previous file with comments | « media/base/media_file_checker.cc ('k') | media/base/media_log.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/media_file_checker_unittest.cc
diff --git a/media/base/media_file_checker_unittest.cc b/media/base/media_file_checker_unittest.cc
index 001fe04694ce1c7b26fe151a46ad102389d41290..63aad607e967425c72b0afa46cad816dc2565d2f 100644
--- a/media/base/media_file_checker_unittest.cc
+++ b/media/base/media_file_checker_unittest.cc
@@ -2,10 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "media/base/media_file_checker.h"
+
+#include <utility>
+
#include "base/files/file.h"
#include "base/logging.h"
#include "build/build_config.h"
-#include "media/base/media_file_checker.h"
#include "media/base/test_data_util.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -16,7 +19,7 @@ static void RunMediaFileChecker(const std::string& filename, bool expectation) {
base::File::FLAG_OPEN | base::File::FLAG_READ);
ASSERT_TRUE(file.IsValid());
- MediaFileChecker checker(file.Pass());
+ MediaFileChecker checker(std::move(file));
const base::TimeDelta check_time = base::TimeDelta::FromMilliseconds(100);
bool result = checker.Start(check_time);
EXPECT_EQ(expectation, result);
« no previous file with comments | « media/base/media_file_checker.cc ('k') | media/base/media_log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698