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

Unified Diff: media/base/data_buffer_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/data_buffer.cc ('k') | media/base/decoder_buffer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/data_buffer_unittest.cc
diff --git a/media/base/data_buffer_unittest.cc b/media/base/data_buffer_unittest.cc
index c06e0873510ddabd962396587e84052f4e5594e3..2b18bf02147033afbe1d47afc6dc2829aaaf826f 100644
--- a/media/base/data_buffer_unittest.cc
+++ b/media/base/data_buffer_unittest.cc
@@ -2,11 +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/data_buffer.h"
+
#include <stdint.h>
+#include <utility>
#include "base/macros.h"
#include "base/strings/string_util.h"
-#include "media/base/data_buffer.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace media {
@@ -36,7 +38,7 @@ TEST(DataBufferTest, Constructor_ScopedArray) {
scoped_ptr<uint8_t[]> data(new uint8_t[kSize]);
const uint8_t* kData = data.get();
- scoped_refptr<DataBuffer> buffer = new DataBuffer(data.Pass(), kSize);
+ scoped_refptr<DataBuffer> buffer = new DataBuffer(std::move(data), kSize);
EXPECT_TRUE(buffer->data());
EXPECT_TRUE(buffer->writable_data());
EXPECT_EQ(kData, buffer->data());
« no previous file with comments | « media/base/data_buffer.cc ('k') | media/base/decoder_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698