2016-07-20 23:09:08 +03:00
|
|
|
#include "EncodeValidator.h"
|
|
|
|
#include <zxing/qrcode/encoder/QRCode.h>
|
|
|
|
#include <zxing/qrcode/encoder/ByteMatrix.h>
|
|
|
|
#include <zxing/qrcode/encoder/Encoder.h>
|
|
|
|
#include "TestCase.h"
|
|
|
|
#include "zxing/qrcode/encoder/MatrixUtilTests.h"
|
2016-07-21 00:50:37 +03:00
|
|
|
#include "zxing/qrcode/encoder/MaskUtilTests.h"
|
2016-07-21 01:49:43 +03:00
|
|
|
#include "zxing/qrcode/encoder/BitArrayTests.h"
|
2016-07-22 02:09:55 +03:00
|
|
|
#include "zxing/qrcode/encoder/QRCodeTests.h"
|
2016-07-22 03:03:12 +03:00
|
|
|
#include "zxing/qrcode/encoder/EncoderTests.h"
|
2016-08-01 19:39:09 +03:00
|
|
|
#include "zxing/common/reedsolomon/ReedSolomonEncoderTests.h"
|
2016-07-20 23:09:08 +03:00
|
|
|
|
|
|
|
namespace zxing {
|
|
|
|
namespace tests{
|
|
|
|
|
2016-12-03 12:48:50 +02:00
|
|
|
EncodeValidator::EncodeValidator() : TestCase()
|
2016-07-20 23:09:08 +03:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-07-21 00:50:37 +03:00
|
|
|
void EncodeValidator::execute()
|
2016-07-20 23:09:08 +03:00
|
|
|
{
|
|
|
|
try{
|
2016-08-01 19:39:09 +03:00
|
|
|
qrcode::tests::MatrixUtilTests t;
|
2016-07-21 00:50:37 +03:00
|
|
|
t.execute();
|
|
|
|
|
2016-08-01 19:39:09 +03:00
|
|
|
qrcode::tests::MaskUtilTests t1;
|
2016-07-21 00:50:37 +03:00
|
|
|
t1.execute();
|
2016-07-21 01:49:43 +03:00
|
|
|
|
2016-08-01 19:39:09 +03:00
|
|
|
qrcode::tests::BitArrayTests t2;
|
2016-07-21 01:49:43 +03:00
|
|
|
t2.execute();
|
2016-07-22 02:09:55 +03:00
|
|
|
|
2016-08-01 19:39:09 +03:00
|
|
|
qrcode::tests::QRCodeTests t3;
|
2016-07-22 02:09:55 +03:00
|
|
|
t3.execute();
|
2016-07-22 03:03:12 +03:00
|
|
|
|
2016-12-03 12:48:50 +02:00
|
|
|
ReedSolomonTests t4;
|
2016-07-22 03:03:12 +03:00
|
|
|
t4.execute();
|
2016-07-20 23:09:08 +03:00
|
|
|
|
2016-08-01 19:39:09 +03:00
|
|
|
qrcode::tests::EncoderTests t5;
|
|
|
|
t5.execute();
|
2016-07-20 23:09:08 +03:00
|
|
|
|
2016-08-01 19:39:09 +03:00
|
|
|
} catch(zxing::Exception &e) {
|
|
|
|
qDebug() << "Exception: " << e.what();
|
2016-07-20 23:09:08 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|