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

Unified Diff: remoting/host/win/rdp_client_unittest.cc

Issue 1935003003: Fixing curtain mode using non-default RDP port for Windows host. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing CR feedback Created 4 years, 8 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/win/rdp_client.cc ('k') | remoting/host/win/rdp_desktop_session.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/win/rdp_client_unittest.cc
diff --git a/remoting/host/win/rdp_client_unittest.cc b/remoting/host/win/rdp_client_unittest.cc
index 01524be3729e5d4226dbe71bfe987d745700bf43..1c51bca5fa480bbe06eb0816520e148c702449cd 100644
--- a/remoting/host/win/rdp_client_unittest.cc
+++ b/remoting/host/win/rdp_client_unittest.cc
@@ -35,6 +35,8 @@ namespace {
const long kDefaultWidth = 1024;
const long kDefaultHeight = 768;
+const DWORD kDefaultRdpPort = 3389;
+
class MockRdpClientEventHandler : public RdpClient::EventHandler {
public:
MockRdpClientEventHandler() {}
@@ -162,10 +164,10 @@ TEST_F(RdpClientTest, Basic) {
.Times(AtMost(1))
.WillOnce(InvokeWithoutArgs(this, &RdpClientTest::CloseRdpClient));
- rdp_client_.reset(new RdpClient(
- task_runner_, task_runner_,
- webrtc::DesktopSize(kDefaultWidth, kDefaultHeight),
- terminal_id_, &event_handler_));
+ rdp_client_.reset(
+ new RdpClient(task_runner_, task_runner_,
+ webrtc::DesktopSize(kDefaultWidth, kDefaultHeight),
+ terminal_id_, kDefaultRdpPort, &event_handler_));
task_runner_ = nullptr;
run_loop_.Run();
« no previous file with comments | « remoting/host/win/rdp_client.cc ('k') | remoting/host/win/rdp_desktop_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698