| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |