notes.push_back (
VerificationNote(
VerificationNote::VERIFY_ERROR,
- VerificationNote::Code::XML_VALIDATION_ERROR,
+ VerificationNote::XML_VALIDATION_ERROR,
i.message(),
xml_file,
i.line()
try {
dcp->read (¬es);
} catch (DCPReadError& e) {
- notes.push_back (VerificationNote(VerificationNote::VERIFY_ERROR, VerificationNote::Code::GENERAL_READ, string(e.what())));
+ notes.push_back (VerificationNote(VerificationNote::VERIFY_ERROR, VerificationNote::GENERAL_READ, string(e.what())));
} catch (XMLError& e) {
- notes.push_back (VerificationNote(VerificationNote::VERIFY_ERROR, VerificationNote::Code::GENERAL_READ, string(e.what())));
+ notes.push_back (VerificationNote(VerificationNote::VERIFY_ERROR, VerificationNote::GENERAL_READ, string(e.what())));
}
BOOST_FOREACH (shared_ptr<CPL> cpl, dcp->cpls()) {
BOOST_REQUIRE_EQUAL (notes.size(), 1);
BOOST_CHECK_EQUAL (notes.front().type(), dcp::VerificationNote::VERIFY_ERROR);
- BOOST_CHECK_EQUAL (notes.front().code(), dcp::VerificationNote::Code::MISSING_ASSET);
+ BOOST_CHECK_EQUAL (notes.front().code(), dcp::VerificationNote::MISSING_ASSET);
}
static
check_after_replace (
7, &assetmap,
"<Path>video.mxf</Path>", "<Path></Path>",
- dcp::VerificationNote::Code::EMPTY_ASSET_PATH
+ dcp::VerificationNote::EMPTY_ASSET_PATH
);
}
check_after_replace (
8, &cpl,
"http://www.smpte-ra.org/schemas/429-7/2006/CPL", "http://www.digicine.com/PROTO-ASDCP-CPL-20040511#",
- dcp::VerificationNote::Code::MISMATCHED_STANDARD,
- dcp::VerificationNote::Code::XML_VALIDATION_ERROR,
- dcp::VerificationNote::Code::CPL_HASH_INCORRECT
+ dcp::VerificationNote::MISMATCHED_STANDARD,
+ dcp::VerificationNote::XML_VALIDATION_ERROR,
+ dcp::VerificationNote::CPL_HASH_INCORRECT
);
}
check_after_replace (
9, &cpl,
"<Id>urn:uuid:81fb54df-e1bf-4647-8788-ea7ba154375b", "<Id>urn:uuid:81fb54df-e1bf-4647-8788-ea7ba154375",
- dcp::VerificationNote::Code::XML_VALIDATION_ERROR
+ dcp::VerificationNote::XML_VALIDATION_ERROR
);
}
check_after_replace (
10, &cpl,
"<IssueDate>", "<IssueDate>x",
- dcp::VerificationNote::Code::XML_VALIDATION_ERROR,
- dcp::VerificationNote::Code::CPL_HASH_INCORRECT
+ dcp::VerificationNote::XML_VALIDATION_ERROR,
+ dcp::VerificationNote::CPL_HASH_INCORRECT
);
}
check_after_replace (
11, &pkl,
"<Id>urn:uuid:ae8", "<Id>urn:uuid:xe8",
- dcp::VerificationNote::Code::XML_VALIDATION_ERROR
+ dcp::VerificationNote::XML_VALIDATION_ERROR
);
}
check_after_replace (
12, &asset_map,
"<Id>urn:uuid:74e", "<Id>urn:uuid:x4e",
- dcp::VerificationNote::Code::XML_VALIDATION_ERROR
+ dcp::VerificationNote::XML_VALIDATION_ERROR
);
}