| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 // ATL headers have to go first. | 5 // ATL headers have to go first. |
| 6 #include <atlbase.h> | 6 #include <atlbase.h> |
| 7 #include <atlhost.h> | 7 #include <atlhost.h> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 ATL::_pAtlModule = NULL; | 74 ATL::_pAtlModule = NULL; |
| 75 } | 75 } |
| 76 | 76 |
| 77 } // namespace | 77 } // namespace |
| 78 | 78 |
| 79 class RdpClientTest : public testing::Test { | 79 class RdpClientTest : public testing::Test { |
| 80 public: | 80 public: |
| 81 RdpClientTest(); | 81 RdpClientTest(); |
| 82 virtual ~RdpClientTest(); | 82 virtual ~RdpClientTest(); |
| 83 | 83 |
| 84 virtual void SetUp() OVERRIDE; | 84 virtual void SetUp() override; |
| 85 virtual void TearDown() OVERRIDE; | 85 virtual void TearDown() override; |
| 86 | 86 |
| 87 // Caaled when an RDP connection is established. | 87 // Caaled when an RDP connection is established. |
| 88 void OnRdpConnected(); | 88 void OnRdpConnected(); |
| 89 | 89 |
| 90 // Tears down |rdp_client_|. | 90 // Tears down |rdp_client_|. |
| 91 void CloseRdpClient(); | 91 void CloseRdpClient(); |
| 92 | 92 |
| 93 protected: | 93 protected: |
| 94 // The ATL module instance required by the ATL code. | 94 // The ATL module instance required by the ATL code. |
| 95 scoped_ptr<RdpClientModule> module_; | 95 scoped_ptr<RdpClientModule> module_; |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 rdp_client_.reset(new RdpClient( | 164 rdp_client_.reset(new RdpClient( |
| 165 task_runner_, task_runner_, | 165 task_runner_, task_runner_, |
| 166 webrtc::DesktopSize(kDefaultWidth, kDefaultHeight), | 166 webrtc::DesktopSize(kDefaultWidth, kDefaultHeight), |
| 167 terminal_id_, &event_handler_)); | 167 terminal_id_, &event_handler_)); |
| 168 task_runner_ = NULL; | 168 task_runner_ = NULL; |
| 169 | 169 |
| 170 run_loop_.Run(); | 170 run_loop_.Run(); |
| 171 } | 171 } |
| 172 | 172 |
| 173 } // namespace remoting | 173 } // namespace remoting |
| OLD | NEW |