| | |
| | | |
| | | #define BOOST_TEST_MODULE standard_license_test |
| | | |
| | | #include <boost/test/unit_test.hpp> |
| | |
| | | #include <iostream> |
| | | #include "../../src/library/ini/SimpleIni.h" |
| | | #include "generate-license.h" |
| | | #include "../../src/library/base/FileUtils.hpp" |
| | | #include "../../src/library/base/file_utils.hpp" |
| | | |
| | | namespace license { |
| | | namespace test { |
| | |
| | | std::copy(licLocation.begin(), licLocation.end(), location.licenseData); |
| | | // magic should be 0 for this build... |
| | | CallerInformations callInfo{{0}, {0}, 42}; |
| | | const EVENT_TYPE result = acquire_license(&callInfo, &location, &license); |
| | | const LCC_EVENT_TYPE result = acquire_license(&callInfo, &location, &license); |
| | | BOOST_CHECK_EQUAL(result, LICENSE_CORRUPTED); |
| | | } |
| | | |