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/test/app_remoting_connected_client_fixture.h" | 5 #include "remoting/test/app_remoting_connected_client_fixture.h" |
6 | 6 |
7 #include "base/json/json_reader.h" | 7 #include "base/json/json_reader.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
10 #include "base/thread_task_runner_handle.h" | 10 #include "base/thread_task_runner_handle.h" |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 message.set_type(message_request_title); | 80 message.set_type(message_request_title); |
81 message.set_data(message_payload); | 81 message.set_data(message_payload); |
82 connection_helper_->host_stub()->DeliverClientMessage(message); | 82 connection_helper_->host_stub()->DeliverClientMessage(message); |
83 | 83 |
84 DCHECK(!timer_->IsRunning()); | 84 DCHECK(!timer_->IsRunning()); |
85 timer_->Start(FROM_HERE, max_wait_time, run_loop_->QuitClosure()); | 85 timer_->Start(FROM_HERE, max_wait_time, run_loop_->QuitClosure()); |
86 | 86 |
87 run_loop_->Run(); | 87 run_loop_->Run(); |
88 timer_->Stop(); | 88 timer_->Stop(); |
89 | 89 |
90 connection_helper_->ResetHostMessageReceivedCallback(); | |
91 return message_received; | 90 return message_received; |
92 } | 91 } |
93 | 92 |
94 } // namespace test | 93 } // namespace test |
95 } // namespace remoting | 94 } // namespace remoting |
OLD | NEW |