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

Unified Diff: mojo/public/cpp/bindings/tests/equals_unittest.cc

Issue 1535943002: Convert Pass()→std::move() in //mojo/public/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Regenerate correctly 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: mojo/public/cpp/bindings/tests/equals_unittest.cc
diff --git a/mojo/public/cpp/bindings/tests/equals_unittest.cc b/mojo/public/cpp/bindings/tests/equals_unittest.cc
index 5306f1f6cc4ab989f4b2f34e430b0605ae5164ab..94b0da6d43e1c9b97376bb4398da8e4dc5f250df 100644
--- a/mojo/public/cpp/bindings/tests/equals_unittest.cc
+++ b/mojo/public/cpp/bindings/tests/equals_unittest.cc
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <utility>
+
#include "mojo/public/cpp/bindings/lib/value_traits.h"
#include "mojo/public/interfaces/bindings/tests/test_structs.mojom.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -17,7 +19,7 @@ RectPtr CreateRect() {
r->y = 2;
r->width = 3;
r->height = 4;
- return r.Pass();
+ return r;
}
using EqualsTest = testing::Test;
@@ -87,7 +89,7 @@ TEST_F(EqualsTest, Map) {
n1->rects.push_back(CreateRect());
Map<std::string, NamedRegionPtr> m1;
- m1.insert("foo", n1.Pass());
+ m1.insert("foo", std::move(n1));
decltype(m1) m2;
EXPECT_FALSE(m1.Equals(m2));
« no previous file with comments | « mojo/public/cpp/bindings/tests/connector_unittest.cc ('k') | mojo/public/cpp/bindings/tests/handle_passing_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698