diff UnitTestsSources/MultiThreadingTests.cpp @ 2715:73bc0c32547c jobs

fix embedding openssl within a DLL
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 09 Jul 2018 13:02:56 +0200
parents 06c0a6b8a871
children 46061a91c88a
line wrap: on
line diff
--- a/UnitTestsSources/MultiThreadingTests.cpp	Mon Jul 09 12:20:28 2018 +0200
+++ b/UnitTestsSources/MultiThreadingTests.cpp	Mon Jul 09 13:02:56 2018 +0200
@@ -1304,7 +1304,7 @@
     RemoteModalityParameters modality;
     modality.SetApplicationEntityTitle("REMOTE");
     modality.SetHost("192.168.1.1");
-    modality.SetPort(1000);
+    modality.SetPortNumber(1000);
     modality.SetManufacturer(ModalityManufacturer_StoreScp);
 
     StoreScuOperation operation("TEST", modality);
@@ -1319,7 +1319,7 @@
     const StoreScuOperation& tmp = dynamic_cast<StoreScuOperation&>(*operation);
     ASSERT_EQ("REMOTE", tmp.GetRemoteModality().GetApplicationEntityTitle());
     ASSERT_EQ("192.168.1.1", tmp.GetRemoteModality().GetHost());
-    ASSERT_EQ(1000, tmp.GetRemoteModality().GetPort());
+    ASSERT_EQ(1000, tmp.GetRemoteModality().GetPortNumber());
     ASSERT_EQ(ModalityManufacturer_StoreScp, tmp.GetRemoteModality().GetManufacturer());
     ASSERT_EQ("TEST", tmp.GetLocalAet());
   }
@@ -1390,7 +1390,7 @@
     RemoteModalityParameters modality;
     modality.SetApplicationEntityTitle("REMOTE");
     modality.SetHost("192.168.1.1");
-    modality.SetPort(1000);
+    modality.SetPortNumber(1000);
     modality.SetManufacturer(ModalityManufacturer_StoreScp);
 
     DicomModalityStoreJob job(GetContext());
@@ -1410,7 +1410,7 @@
     ASSERT_EQ("LOCAL", tmp.GetLocalAet());
     ASSERT_EQ("REMOTE", tmp.GetRemoteModality().GetApplicationEntityTitle());
     ASSERT_EQ("192.168.1.1", tmp.GetRemoteModality().GetHost());
-    ASSERT_EQ(1000, tmp.GetRemoteModality().GetPort());
+    ASSERT_EQ(1000, tmp.GetRemoteModality().GetPortNumber());
     ASSERT_EQ(ModalityManufacturer_StoreScp, tmp.GetRemoteModality().GetManufacturer());
     ASSERT_TRUE(tmp.HasMoveOriginator());
     ASSERT_EQ("MOVESCU", tmp.GetMoveOriginatorAet());