| | |
| | | #define BOOST_TEST_MODULE standard_license_test |
| | | //#define BOOST_TEST_MAIN |
| | | //#undef BOOST_TEST_DYN_LINK |
| | | #define BOOST_TEST_MODULE test_volid |
| | | |
| | | #include <boost/test/unit_test.hpp> |
| | | #include <fstream> |
| | | #include <stdio.h> |
| | |
| | | |
| | | LicenseInfo license; |
| | | LicenseLocation licenseLocation; |
| | | licenseLocation.openFileNearModule = false; |
| | | licenseLocation.licenseFileLocation = licLocation.c_str(); |
| | | licenseLocation.environmentVariableName = ""; |
| | | const EVENT_TYPE result = acquire_license("TEST", licenseLocation, &license); |
| | | licenseLocation.licenseData = ""; |
| | | const EVENT_TYPE result = acquire_license("TEST", &licenseLocation, &license); |
| | | BOOST_CHECK_EQUAL(result, LICENSE_OK); |
| | | BOOST_CHECK_EQUAL(license.has_expiry, false); |
| | | BOOST_CHECK_EQUAL(license.linked_to_pc, true); |