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

Unified Diff: chrome/test/chromedriver/commands_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/commands_unittest.cc
diff --git a/chrome/test/chromedriver/commands_unittest.cc b/chrome/test/chromedriver/commands_unittest.cc
index 5ad7825bb5d20cccac416654b51af47fdb1084bf..12a115de6727df1bb58e2148f51432ebed7daffb 100644
--- a/chrome/test/chromedriver/commands_unittest.cc
+++ b/chrome/test/chromedriver/commands_unittest.cc
@@ -2,9 +2,11 @@
// 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/commands.h"
+#include <stddef.h>
#include <string>
+#include <utility>
#include "base/bind.h"
#include "base/callback.h"
@@ -22,7 +24,6 @@
#include "chrome/test/chromedriver/chrome/stub_web_view.h"
#include "chrome/test/chromedriver/chrome/web_view.h"
#include "chrome/test/chromedriver/command_listener_proxy.h"
-#include "chrome/test/chromedriver/commands.h"
#include "chrome/test/chromedriver/element_commands.h"
#include "chrome/test/chromedriver/session.h"
#include "chrome/test/chromedriver/session_commands.h"
@@ -70,7 +71,7 @@ void ExecuteStubGetSession(int* count,
capabilities->Set("capability1", new base::StringValue("test1"));
capabilities->Set("capability2", new base::StringValue("test2"));
- callback.Run(Status(kOk), capabilities.Pass(), session_id);
+ callback.Run(Status(kOk), std::move(capabilities), session_id);
}
void OnGetSessions(const Status& status,

Powered by Google App Engine
This is Rietveld 408576698