open-license-manager
2014-07-22 b01aec9f631409027c706c95a798f56d41b28c5c
tests
2个文件已修改
7 ■■■■■ 已修改文件
src/library/base/EventRegistry.cpp 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
test/library/LicenseReader_test.cpp 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/library/base/EventRegistry.cpp
@@ -79,6 +79,7 @@
void EventRegistry::addError(EVENT_TYPE event) {
    addEvent(event, SEVERITY_ERROR);
}
void EventRegistry::addEvent(EVENT_TYPE event, SEVERITY severity) {
    AuditEvent audit;
    audit.severity = severity;
test/library/LicenseReader_test.cpp
@@ -10,7 +10,7 @@
BOOST_AUTO_TEST_CASE( read_single_file ) {
    const char * licLocation =
            PROJECT_TEST_SRC_DIR "/library/reader/test_reader.ini";
            PROJECT_TEST_SRC_DIR "/library/test_reader.ini";
    const LicenseLocation location = { licLocation, NULL, false };
    LicenseReader licenseReader(location);
    vector<FullLicenseInfo> licenseInfos;
@@ -22,7 +22,7 @@
BOOST_AUTO_TEST_CASE( product_not_licensed ) {
    const char * licLocation =
            PROJECT_TEST_SRC_DIR "/library/reader/test_reader.ini";
            PROJECT_TEST_SRC_DIR "/library/test_reader.ini";
    const LicenseLocation location = { licLocation, NULL, false };
    LicenseReader licenseReader(location);
    vector<FullLicenseInfo> licenseInfos;
@@ -37,7 +37,7 @@
BOOST_AUTO_TEST_CASE( file_not_found ) {
    const char * licLocation =
            PROJECT_TEST_SRC_DIR "/library/reader/not_found.ini";
            PROJECT_TEST_SRC_DIR "/library/not_found.ini";
    //const char * envName = "MYVAR";
    const LicenseLocation location = { licLocation, NULL, false };
    LicenseReader licenseReader(location);