| Index: xfa/fxbarcode/pdf417/BC_PDF417HighLevelEncoder_unittest.cpp
|
| diff --git a/xfa/src/fxbarcode/pdf417/BC_PDF417HighLevelEncoder_unittest.cpp b/xfa/fxbarcode/pdf417/BC_PDF417HighLevelEncoder_unittest.cpp
|
| similarity index 95%
|
| rename from xfa/src/fxbarcode/pdf417/BC_PDF417HighLevelEncoder_unittest.cpp
|
| rename to xfa/fxbarcode/pdf417/BC_PDF417HighLevelEncoder_unittest.cpp
|
| index b0f717e5bc6b0172a3a97459332f8b1a2452d1e2..8e1837071dd711c377124b8eed1315c46f4b79c5 100644
|
| --- a/xfa/src/fxbarcode/pdf417/BC_PDF417HighLevelEncoder_unittest.cpp
|
| +++ b/xfa/fxbarcode/pdf417/BC_PDF417HighLevelEncoder_unittest.cpp
|
| @@ -5,7 +5,7 @@
|
| #include "core/include/fxcrt/fx_basic.h"
|
| #include "testing/fx_string_testhelpers.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
| -#include "xfa/src/fxbarcode/pdf417/BC_PDF417HighLevelEncoder.h"
|
| +#include "xfa/fxbarcode/pdf417/BC_PDF417HighLevelEncoder.h"
|
|
|
| TEST(PDF417HighLevelEncoder, EncodeHighLevel) {
|
| // TODO(tsepez): implement test cases.
|
| @@ -82,35 +82,27 @@ TEST(PDF417HighLevelEncoder, EncodeNumeric) {
|
| {L"123456", 2, 2, L"\x0086", 1},
|
|
|
| // Up to 44 characters encodes as 15 base-900 words.
|
| - {L"00000000000000000000000000000000000000000000",
|
| - 0,
|
| - 44,
|
| + {L"00000000000000000000000000000000000000000000", 0, 44,
|
| L"\x01b5\x006f\x02cc\x0084\x01bc\x0076\x00b3\x005c\x01f0\x034f\x01e6"
|
| L"\x0090\x020b\x019b\x0064",
|
| 15},
|
|
|
| // 45 characters should encode as same 15 words followed by one additional
|
| // word.
|
| - {L"000000000000000000000000000000000000000000000",
|
| - 0,
|
| - 45,
|
| + {L"000000000000000000000000000000000000000000000", 0, 45,
|
| L"\x01b5\x006f\x02cc\x0084\x01bc\x0076\x00b3\x005c\x01f0\x034f\x01e6"
|
| L"\x0090\x020b\x019b\x0064\x000a",
|
| 16},
|
|
|
| // 44 characters followed by 800 should encode as 15 words followed by
|
| // 1800 base-900 == 2,0.
|
| - {L"00000000000000000000000000000000000000000000800",
|
| - 0,
|
| - 47,
|
| + {L"00000000000000000000000000000000000000000000800", 0, 47,
|
| L"\x01b5\x006f\x02cc\x0084\x01bc\x0076\x00b3\x005c\x01f0\x034f\x01e6"
|
| L"\x0090\x020b\x019b\x0064\x0002\x0000",
|
| 17},
|
|
|
| // Even longer input.
|
| - {L"10000000000000000000000000000000000000000000000000",
|
| - 0,
|
| - 50,
|
| + {L"10000000000000000000000000000000000000000000000000", 0, 50,
|
| L"\x01e0\x02f0\x036d\x02ad\x029c\x01ea\x0011\x000b\x02d6\x023c\x0108"
|
| L"\x02bb\x0023\x02d2\x00c8\x0001\x00d3\x0064",
|
| 18},
|
|
|