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

Unified Diff: remoting/base/typed_buffer_unittest.cc

Issue 1545723002: Use std::move() instead of .Pass() in remoting/* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_not_pass_host
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 | « remoting/base/rsa_key_pair.cc ('k') | remoting/base/url_request_context_getter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/typed_buffer_unittest.cc
diff --git a/remoting/base/typed_buffer_unittest.cc b/remoting/base/typed_buffer_unittest.cc
index 0c036fbea812b32ef4d252aa9d4a8e6daa5ea32a..ae1561c22aeb65d15488226fa1a5f73b11ec22f4 100644
--- a/remoting/base/typed_buffer_unittest.cc
+++ b/remoting/base/typed_buffer_unittest.cc
@@ -3,6 +3,9 @@
// found in the LICENSE file.
#include "remoting/base/typed_buffer.h"
+
+#include <utility>
+
#include "testing/gtest/include/gtest/gtest.h"
namespace remoting {
@@ -57,7 +60,7 @@ TEST(TypedBufferTest, Pass) {
EXPECT_EQ(right.length(), sizeof(int));
Data* raw_ptr = right.get();
- left = right.Pass();
+ left = std::move(right);
// Verify that passing ownership transfers both the buffer pointer and its
// length.
« no previous file with comments | « remoting/base/rsa_key_pair.cc ('k') | remoting/base/url_request_context_getter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698