| 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_connection_helper.h" | 5 #include "remoting/test/app_remoting_connection_helper.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/json/json_reader.h" | 9 #include "base/json/json_reader.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 // First send an access token which will be used for Google Drive access. | 154 // First send an access token which will be used for Google Drive access. |
| 155 protocol::ExtensionMessage message; | 155 protocol::ExtensionMessage message; |
| 156 message.set_type("accessToken"); | 156 message.set_type("accessToken"); |
| 157 message.set_data(AppRemotingSharedData->access_token()); | 157 message.set_data(AppRemotingSharedData->access_token()); |
| 158 | 158 |
| 159 VLOG(1) << "Sending access token to host"; | 159 VLOG(1) << "Sending access token to host"; |
| 160 client_->host_stub()->DeliverClientMessage(message); | 160 client_->host_stub()->DeliverClientMessage(message); |
| 161 | 161 |
| 162 // Next send the host a description of the client screen size. | 162 // Next send the host a description of the client screen size. |
| 163 protocol::ClientResolution client_resolution; | 163 protocol::ClientResolution client_resolution; |
| 164 client_resolution.set_width(kDefaultWidth); | 164 client_resolution.set_width_deprecated(kDefaultWidth); |
| 165 client_resolution.set_height(kDefaultHeight); | 165 client_resolution.set_height_deprecated(kDefaultHeight); |
| 166 client_resolution.set_x_dpi(kDefaultDPI); | 166 client_resolution.set_x_dpi(kDefaultDPI); |
| 167 client_resolution.set_y_dpi(kDefaultDPI); | 167 client_resolution.set_y_dpi(kDefaultDPI); |
| 168 client_resolution.set_dips_width(kDefaultWidth); | 168 client_resolution.set_dips_width(kDefaultWidth); |
| 169 client_resolution.set_dips_height(kDefaultHeight); | 169 client_resolution.set_dips_height(kDefaultHeight); |
| 170 | 170 |
| 171 VLOG(1) << "Sending ClientResolution details to host"; | 171 VLOG(1) << "Sending ClientResolution details to host"; |
| 172 client_->host_stub()->NotifyClientResolution(client_resolution); | 172 client_->host_stub()->NotifyClientResolution(client_resolution); |
| 173 | 173 |
| 174 // Finally send a message to start sending us video packets. | 174 // Finally send a message to start sending us video packets. |
| 175 protocol::VideoControl video_control; | 175 protocol::VideoControl video_control; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 DCHECK(run_loop_); | 213 DCHECK(run_loop_); |
| 214 // Now that the main window is visible, give the app some time to settle | 214 // Now that the main window is visible, give the app some time to settle |
| 215 // before signaling that it is ready to run tests. | 215 // before signaling that it is ready to run tests. |
| 216 timer_->Start(FROM_HERE, base::TimeDelta::FromSeconds(2), | 216 timer_->Start(FROM_HERE, base::TimeDelta::FromSeconds(2), |
| 217 run_loop_->QuitClosure()); | 217 run_loop_->QuitClosure()); |
| 218 } | 218 } |
| 219 } | 219 } |
| 220 | 220 |
| 221 } // namespace test | 221 } // namespace test |
| 222 } // namespace remoting | 222 } // namespace remoting |
| OLD | NEW |