comparison UnitTestsSources/VersionsTests.cpp @ 2136:dd609a99d39a

uniformization of the macro naming
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 09 Nov 2016 14:08:05 +0100
parents 4e72929c0722
children a3a65de1840f
comparison
equal deleted inserted replaced
2135:cadfe0a2a393 2136:dd609a99d39a
42 #include <boost/version.hpp> 42 #include <boost/version.hpp>
43 #include <sqlite3.h> 43 #include <sqlite3.h>
44 #include <lua.h> 44 #include <lua.h>
45 #include <jpeglib.h> 45 #include <jpeglib.h>
46 46
47 #if ORTHANC_SSL_ENABLED == 1 47 #if ORTHANC_ENABLE_SSL == 1
48 #include <openssl/opensslv.h> 48 #include <openssl/opensslv.h>
49 #endif 49 #endif
50 50
51 51
52 TEST(Versions, Zlib) 52 TEST(Versions, Zlib)
128 curl_version_info_data * vinfo = curl_version_info(CURLVERSION_NOW); 128 curl_version_info_data * vinfo = curl_version_info(CURLVERSION_NOW);
129 129
130 // Check that SSL support is enabled when required 130 // Check that SSL support is enabled when required
131 bool curlSupportsSsl = (vinfo->features & CURL_VERSION_SSL) != 0; 131 bool curlSupportsSsl = (vinfo->features & CURL_VERSION_SSL) != 0;
132 132
133 #if ORTHANC_SSL_ENABLED == 0 133 #if ORTHANC_ENABLE_SSL == 0
134 ASSERT_FALSE(curlSupportsSsl); 134 ASSERT_FALSE(curlSupportsSsl);
135 #else 135 #else
136 ASSERT_TRUE(curlSupportsSsl); 136 ASSERT_TRUE(curlSupportsSsl);
137 #endif 137 #endif
138 } 138 }
141 { 141 {
142 ASSERT_STREQ("Lua 5.1.5", LUA_RELEASE); 142 ASSERT_STREQ("Lua 5.1.5", LUA_RELEASE);
143 } 143 }
144 144
145 145
146 #if ORTHANC_SSL_ENABLED == 1 146 #if ORTHANC_ENABLE_SSL == 1
147 TEST(Version, OpenSslStatic) 147 TEST(Version, OpenSslStatic)
148 { 148 {
149 ASSERT_EQ(0x1000204fL /* openssl-1.0.2d */, OPENSSL_VERSION_NUMBER); 149 ASSERT_EQ(0x1000204fL /* openssl-1.0.2d */, OPENSSL_VERSION_NUMBER);
150 } 150 }
151 #endif 151 #endif