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

Unified Diff: device/gamepad/public/interfaces/gamepad_struct_traits_unittest.cc

Issue 2872563002: Use OnceCallback on Mojo interfaces in //device/gamepad (Closed)
Patch Set: rebase Created 3 years, 7 months 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/gamepad/public/interfaces/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/gamepad/public/interfaces/gamepad_struct_traits_unittest.cc
diff --git a/device/gamepad/public/interfaces/gamepad_struct_traits_unittest.cc b/device/gamepad/public/interfaces/gamepad_struct_traits_unittest.cc
index f1c5c27cfd46c2c896ec871715eac33e69c19ade..5a731fe88b005f08e5566a26eefce83284ff9b42 100644
--- a/device/gamepad/public/interfaces/gamepad_struct_traits_unittest.cc
+++ b/device/gamepad/public/interfaces/gamepad_struct_traits_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 "base/message_loop/message_loop.h"
#include "base/run_loop.h"
#include "device/gamepad/public/cpp/gamepad.h"
@@ -175,9 +177,8 @@ class GamepadStructTraitsTest : public testing::Test,
protected:
GamepadStructTraitsTest() : binding_(this) {}
- void PassGamepad(const Gamepad& send,
- const PassGamepadCallback& callback) override {
- callback.Run(send);
+ void PassGamepad(const Gamepad& send, PassGamepadCallback callback) override {
+ std::move(callback).Run(send);
}
mojom::GamepadStructTraitsTestPtr GetGamepadStructTraitsTestProxy() {
« no previous file with comments | « device/gamepad/public/interfaces/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698