comparison OrthancFramework/UnitTestsSources/RestApiTests.cpp @ 4063:e00f3d089991 framework

shared library of orthanc framework
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 11 Jun 2020 16:40:34 +0200
parents 0953b3dc3261
children 3dda0d73193c
comparison
equal deleted inserted replaced
4062:0953b3dc3261 4063:e00f3d089991
30 * along with this program. If not, see <http://www.gnu.org/licenses/>. 30 * along with this program. If not, see <http://www.gnu.org/licenses/>.
31 **/ 31 **/
32 32
33 33
34 #if ORTHANC_UNIT_TESTS_LINK_FRAMEWORK == 1 34 #if ORTHANC_UNIT_TESTS_LINK_FRAMEWORK == 1
35 // Must be the first to be sure to use the Orthanc framework shared library
35 # include <OrthancFramework.h> 36 # include <OrthancFramework.h>
36 #endif 37 #endif
37 38
38 #include <gtest/gtest.h> 39 #include <gtest/gtest.h>
39 40
54 55
55 56
56 using namespace Orthanc; 57 using namespace Orthanc;
57 58
58 #if !defined(UNIT_TESTS_WITH_HTTP_CONNEXIONS) 59 #if !defined(UNIT_TESTS_WITH_HTTP_CONNEXIONS)
59 #error "Please set UNIT_TESTS_WITH_HTTP_CONNEXIONS" 60 # error UNIT_TESTS_WITH_HTTP_CONNEXIONS is not defined
61 #endif
62
63 #if !defined(ORTHANC_ENABLE_SSL)
64 # error ORTHANC_ENABLE_SSL is not defined
60 #endif 65 #endif
61 66
62 67
63 68
64 TEST(HttpClient, Basic) 69 TEST(HttpClient, Basic)