OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "core/fxcrt/include/fx_basic.h" | 5 #include "core/fxcrt/fx_basic.h" |
6 #include "testing/fx_string_testhelpers.h" | 6 #include "testing/fx_string_testhelpers.h" |
7 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
8 #include "xfa/fxbarcode/pdf417/BC_PDF417HighLevelEncoder.h" | 8 #include "xfa/fxbarcode/pdf417/BC_PDF417HighLevelEncoder.h" |
9 | 9 |
10 TEST(PDF417HighLevelEncoder, EncodeHighLevel) { | 10 TEST(PDF417HighLevelEncoder, EncodeHighLevel) { |
11 // TODO(tsepez): implement test cases. | 11 // TODO(tsepez): implement test cases. |
12 } | 12 } |
13 | 13 |
14 TEST(PDF417HighLevelEncoder, EncodeText) { | 14 TEST(PDF417HighLevelEncoder, EncodeText) { |
15 // TODO(tsepez): implement test cases. | 15 // TODO(tsepez): implement test cases. |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 CFX_WideString input(ptr->input); | 222 CFX_WideString input(ptr->input); |
223 int actual_count = | 223 int actual_count = |
224 CBC_PDF417HighLevelEncoder::determineConsecutiveTextCount(input, | 224 CBC_PDF417HighLevelEncoder::determineConsecutiveTextCount(input, |
225 ptr->offset); | 225 ptr->offset); |
226 EXPECT_EQ(ptr->expected_count, actual_count) << " for case number " << i; | 226 EXPECT_EQ(ptr->expected_count, actual_count) << " for case number " << i; |
227 } | 227 } |
228 CBC_PDF417HighLevelEncoder::Finalize(); | 228 CBC_PDF417HighLevelEncoder::Finalize(); |
229 } | 229 } |
230 | 230 |
231 TEST(PDF417HighLevelEncoder, ConsecutiveBinaryCount) {} | 231 TEST(PDF417HighLevelEncoder, ConsecutiveBinaryCount) {} |
OLD | NEW |