• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2019 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include "fxbarcode/cbc_pdf417i.h"
6 
7 #include <vector>
8 
9 #include "testing/gtest/include/gtest/gtest.h"
10 
TEST(CBC_PDF417ITest,Normal)11 TEST(CBC_PDF417ITest, Normal) {
12   CBC_PDF417I encoder;
13   EXPECT_TRUE(encoder.Encode(L"Foo"));
14 }
15 
TEST(CBC_PDF417ITest,MaxLength)16 TEST(CBC_PDF417ITest, MaxLength) {
17   std::vector<wchar_t> input(2711, L'1');
18   CBC_PDF417I encoder;
19   EXPECT_FALSE(encoder.Encode(WideStringView(input.data(), input.size())));
20 }
21