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

Side by Side Diff: remoting/host/mouse_shape_pump_unittest.cc

Issue 1549493004: Use std::move() instead of .Pass() in remoting/host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_not_pass
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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "remoting/host/mouse_shape_pump.h" 5 #include "remoting/host/mouse_shape_pump.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/run_loop.h" 9 #include "base/run_loop.h"
10 #include "base/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 base::RunLoop run_loop; 130 base::RunLoop run_loop;
131 131
132 // Stop the |run_loop| once it has captured the cursor. 132 // Stop the |run_loop| once it has captured the cursor.
133 EXPECT_CALL(client_stub_, SetCursorShape(_)) 133 EXPECT_CALL(client_stub_, SetCursorShape(_))
134 .WillOnce(DoAll( 134 .WillOnce(DoAll(
135 Invoke(this, &MouseShapePumpTest::SetCursorShape), 135 Invoke(this, &MouseShapePumpTest::SetCursorShape),
136 InvokeWithoutArgs(&run_loop, &base::RunLoop::Quit))) 136 InvokeWithoutArgs(&run_loop, &base::RunLoop::Quit)))
137 .RetiresOnSaturation(); 137 .RetiresOnSaturation();
138 138
139 // Start the pump. 139 // Start the pump.
140 pump_.reset(new MouseShapePump(capture_task_runner_, cursor_monitor.Pass(), 140 pump_.reset(new MouseShapePump(capture_task_runner_,
141 &client_stub_)); 141 std::move(cursor_monitor), &client_stub_));
142 142
143 run_loop.Run(); 143 run_loop.Run();
144 } 144 }
145 145
146 } // namespace remoting 146 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698