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

Unified Diff: chrome/test/chromedriver/chrome/heap_snapshot_taker_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/test/chromedriver/chrome/heap_snapshot_taker_unittest.cc
diff --git a/chrome/test/chromedriver/chrome/heap_snapshot_taker_unittest.cc b/chrome/test/chromedriver/chrome/heap_snapshot_taker_unittest.cc
index 792beee2634c6b02ffab498c80d6b788d27f135e..bad0fac947cc50f42c8a5ea535720cfa241d8808 100644
--- a/chrome/test/chromedriver/chrome/heap_snapshot_taker_unittest.cc
+++ b/chrome/test/chromedriver/chrome/heap_snapshot_taker_unittest.cc
@@ -2,15 +2,16 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include <stddef.h>
+#include "chrome/test/chromedriver/chrome/heap_snapshot_taker.h"
+#include <stddef.h>
#include <list>
#include <string>
+#include <utility>
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "base/values.h"
-#include "chrome/test/chromedriver/chrome/heap_snapshot_taker.h"
#include "chrome/test/chromedriver/chrome/status.h"
#include "chrome/test/chromedriver/chrome/stub_devtools_client.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -23,7 +24,7 @@ scoped_ptr<base::Value> GetSnapshotAsValue() {
scoped_ptr<base::DictionaryValue> dict(new base::DictionaryValue());
dict->SetInteger("a", 1);
dict->SetInteger("b", 2);
- return dict.Pass();
+ return std::move(dict);
}
class DummyDevToolsClient : public StubDevToolsClient {

Powered by Google App Engine
This is Rietveld 408576698