27 namespace TestDetector
103 unsigned int version_ = 0u;
128 static bool test(
const double testDuration);
169 #ifdef OCEAN_USE_LOCAL_TEST_DATA_COLLECTION
181 errorCorrectionCapacity_(errorCorrectionCapacity),
182 maskingPattern_(maskingPattern),
MaskingPattern
Enum for the mask patterns used to shuffle modules of a Micro QR code.
Definition: MicroQRCodeEncoder.h:45
@ MP_PATTERN_UNKNOWN
Denotes unknown masking patterns (not part of the standard)
Definition: MicroQRCodeEncoder.h:59
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
This class implements a subscription object which can be used unique subscriptions to e....
Definition: ScopedSubscription.h:28
This class implements tests for the Micro QR code features.
Definition: TestMicroQRCodeDecoder.h:37
Definition of a helper data structure that's used to verify the Micro QR code encoding functionality ...
Definition: TestMicroQRCodeEncoder.h:81
std::string modules_
The modules (bit matrix)
Definition: TestMicroQRCodeEncoder.h:115
std::string message_
The raw message.
Definition: TestMicroQRCodeEncoder.h:112
MicroQRCodeVerificationItem()=default
Constructor - creates an invalid instance.
This class implements a test data collection based on a local file.
Definition: TestMicroQRCodeEncoder.h:47
SharedTestData data(const size_t index) override
Returns the test data object associated with a specified index.
FileDataCollection(const std::string &filename)
Creates a new test data collection object.
std::string filename_
The filename of the test data belonging to this test collection.
Definition: TestMicroQRCodeEncoder.h:71
size_t size() override
Returns the number of data object objects this collection holds.
This class implements tests for the Micro QR code features.
Definition: TestMicroQRCodeEncoder.h:38
static bool convertCSVToMicroQRCodeVerificationItem(const std::string &lineCSV, MicroQRCodeVerificationItem &qrcodeVerificationItem)
Converts a line from a CSV file into a helper data structure that is subsequently used for testing.
static bool testMicroQRCodeEncoding(const double testDuration)
Tests encoding (generation) of Micro QR codes.
std::vector< MicroQRCodeVerificationItem > MicroQRCodeVerificationItems
Vector of verification items.
Definition: TestMicroQRCodeEncoder.h:119
static MicroQRCodeVerificationItems loadDataTestMicroQRCodeEncoding()
Provides verification data for the Micro QR code encoding test.
static bool testMicroQRCodeFormatEncodingDecoding()
Tests the encoding/decoding of the format information.
static bool test(const double testDuration)
Tests the Micro QR code functions.
static MicroQRCodeVerificationItems loadCSVTestMicroQRCodeEncoding(const void *buffer, const size_t size)
Loads the verification data for the Micro QR code encoding test from a buffer containing a CSV file.
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 TestMicroQRCodeEncoder_registerTestDataCollection()
Registers the data collections for the MicroQRCodeEncoder test.
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15