18 #ifdef OCEAN_USE_LOCAL_TEST_DATA_COLLECTION
19 #ifndef OCEAN_USE_TEST_DATA_COLLECTION
20 #define OCEAN_USE_TEST_DATA_COLLECTION
33 namespace TestDetector
109 unsigned int version_ = 0u;
134 static bool test(
const double testDuration);
181 #ifdef OCEAN_USE_TEST_DATA_COLLECTION
193 errorCorrectionCapacity_(errorCorrectionCapacity),
194 maskingPattern_(maskingPattern),
ErrorCorrectionCapacity
Enumeration of the levels of error correction The value of the enums correspond to the standard-defin...
Definition: QRCodeBase.h:53
@ ECC_INVALID
Indicator for an invalid error correction capacity.
Definition: QRCodeBase.h:65
MaskingPattern
Enum for the mask patterns used to shuffle modules of a QR code.
Definition: QRCodeEncoder.h:45
@ MP_PATTERN_UNKNOWN
Denotes unknown masking patterns (not part of the standard)
Definition: QRCodeEncoder.h:71
This class implements a subscription object which can be used unique subscriptions to e....
Definition: ScopedSubscription.h:28
This class implements tests for the QR code features.
Definition: TestQRCodeDecoder.h:35
This class implements a test data collection based on a local file.
Definition: TestQRCodeEncoder.h:53
FileDataCollection(const std::string &filename)
Creates a new test data collection object.
SharedTestData data(const size_t index) override
Returns the test data object associated with a specified index.
size_t size() override
Returns the number of data object objects this collection holds.
std::string filename_
The filename of the test data belonging to this test collection.
Definition: TestQRCodeEncoder.h:77
Definition of a helper data structure that's used to verify the QR code encoding functionality This w...
Definition: TestQRCodeEncoder.h:87
QRCodeVerificationItem()=default
Constructor - creates an invalid instance.
std::string message_
The raw message.
Definition: TestQRCodeEncoder.h:118
std::string modules_
The modules (bit matrix)
Definition: TestQRCodeEncoder.h:121
This class implements tests for the QR code features.
Definition: TestQRCodeEncoder.h:44
static bool testQRCodeFormatEncodingDecoding()
Tests the encoding/decoding of the format information.
static bool convertCSVToQRCodeVerificationItem(const std::string &lineCSV, QRCodeVerificationItem &qrcodeVerificationItem)
Converts a line from a CSV file into a helper data structure that is subsequently used for testing.
static QRCodeVerificationItems loadDataTestQRCodeEncoding()
Provides verification data for the QR code encoding test.
std::vector< QRCodeVerificationItem > QRCodeVerificationItems
Vector of verification items.
Definition: TestQRCodeEncoder.h:125
static bool test(const double testDuration)
Tests the QR code functions.
static bool testQRCodeEncoding(const double testDuration)
Tests encoding (generation) of QR codes.
static QRCodeVerificationItems loadCSVTestQRCodeEncoding(const void *buffer, const size_t size)
Loads the verification data for the QR code encoding test from a buffer containing a CSV file.
static bool testQRCodeVersionEncodingDecoding()
Tests the encoding/decoding of the version information.
This class is the base class for all TestDataCollection objects.
Definition: TestDataCollection.h:35
std::shared_ptr< TestData > SharedTestData
Definition of a shared pointer holding a TestData object.
Definition: TestData.h:29
TestDataManager::ScopedSubscription TestQRCodeEncoder_registerTestDataCollection()
Registers the data collections for the QRCodeEncoder test.
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15