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

Unified Diff: device/battery/battery_status_service_unittest.cc

Issue 1544323002: Convert Pass()→std::move() in //device (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 | « device/battery/battery_status_service.cc ('k') | device/bluetooth/bluetooth_adapter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/battery/battery_status_service_unittest.cc
diff --git a/device/battery/battery_status_service_unittest.cc b/device/battery/battery_status_service_unittest.cc
index c46b8061eccbaf4cee34daa319ff9ff2fd2c6e9d..45d137dc81747c8e7c8c784f55dd7f978d5461f4 100644
--- a/device/battery/battery_status_service_unittest.cc
+++ b/device/battery/battery_status_service_unittest.cc
@@ -2,12 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "device/battery/battery_status_service.h"
+
+#include <utility>
+
#include "base/bind.h"
#include "base/macros.h"
#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
#include "device/battery/battery_status_manager.h"
-#include "device/battery/battery_status_service.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace device {
@@ -69,7 +72,7 @@ class BatteryStatusServiceTest : public testing::Test {
new FakeBatteryManager(battery_service_.GetUpdateCallbackForTesting()));
battery_manager_ = battery_manager.get();
- battery_service_.SetBatteryManagerForTesting(battery_manager.Pass());
+ battery_service_.SetBatteryManagerForTesting(std::move(battery_manager));
}
void TearDown() override {
« no previous file with comments | « device/battery/battery_status_service.cc ('k') | device/bluetooth/bluetooth_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698