comparison UnitTestsSources/MultiThreadingTests.cpp @ 3602:085283445db0 storage-commitment

AllowNAction in remote modality parameters
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 16 Jan 2020 15:28:32 +0100
parents bdafff1ce443
children c1e2b91c2ab4
comparison
equal deleted inserted replaced
3601:a77e7839012a 3602:085283445db0
1895 ASSERT_TRUE(modality.IsRequestAllowed(DicomRequestType_Echo)); 1895 ASSERT_TRUE(modality.IsRequestAllowed(DicomRequestType_Echo));
1896 ASSERT_TRUE(modality.IsRequestAllowed(DicomRequestType_Find)); 1896 ASSERT_TRUE(modality.IsRequestAllowed(DicomRequestType_Find));
1897 ASSERT_TRUE(modality.IsRequestAllowed(DicomRequestType_Get)); 1897 ASSERT_TRUE(modality.IsRequestAllowed(DicomRequestType_Get));
1898 ASSERT_TRUE(modality.IsRequestAllowed(DicomRequestType_Store)); 1898 ASSERT_TRUE(modality.IsRequestAllowed(DicomRequestType_Store));
1899 ASSERT_TRUE(modality.IsRequestAllowed(DicomRequestType_Move)); 1899 ASSERT_TRUE(modality.IsRequestAllowed(DicomRequestType_Move));
1900 ASSERT_TRUE(modality.IsRequestAllowed(DicomRequestType_NAction));
1900 } 1901 }
1901 1902
1902 s = Json::nullValue; 1903 s = Json::nullValue;
1903 1904
1904 { 1905 {
1923 ASSERT_TRUE(modality.IsRequestAllowed(DicomRequestType_Echo)); 1924 ASSERT_TRUE(modality.IsRequestAllowed(DicomRequestType_Echo));
1924 ASSERT_TRUE(modality.IsRequestAllowed(DicomRequestType_Find)); 1925 ASSERT_TRUE(modality.IsRequestAllowed(DicomRequestType_Find));
1925 ASSERT_TRUE(modality.IsRequestAllowed(DicomRequestType_Get)); 1926 ASSERT_TRUE(modality.IsRequestAllowed(DicomRequestType_Get));
1926 ASSERT_TRUE(modality.IsRequestAllowed(DicomRequestType_Store)); 1927 ASSERT_TRUE(modality.IsRequestAllowed(DicomRequestType_Store));
1927 ASSERT_TRUE(modality.IsRequestAllowed(DicomRequestType_Move)); 1928 ASSERT_TRUE(modality.IsRequestAllowed(DicomRequestType_Move));
1929 ASSERT_TRUE(modality.IsRequestAllowed(DicomRequestType_NAction));
1928 } 1930 }
1929 1931
1930 s["Port"] = "46"; 1932 s["Port"] = "46";
1931 1933
1932 { 1934 {
1942 operations.insert(DicomRequestType_Echo); 1944 operations.insert(DicomRequestType_Echo);
1943 operations.insert(DicomRequestType_Find); 1945 operations.insert(DicomRequestType_Find);
1944 operations.insert(DicomRequestType_Get); 1946 operations.insert(DicomRequestType_Get);
1945 operations.insert(DicomRequestType_Move); 1947 operations.insert(DicomRequestType_Move);
1946 operations.insert(DicomRequestType_Store); 1948 operations.insert(DicomRequestType_Store);
1947 1949 operations.insert(DicomRequestType_NAction);
1948 ASSERT_EQ(5u, operations.size()); 1950
1951 ASSERT_EQ(6u, operations.size());
1949 1952
1950 for (std::set<DicomRequestType>::const_iterator 1953 for (std::set<DicomRequestType>::const_iterator
1951 it = operations.begin(); it != operations.end(); ++it) 1954 it = operations.begin(); it != operations.end(); ++it)
1952 { 1955 {
1953 { 1956 {