Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
cxfa_ffbarcode_unittest.cpp
Go to the documentation of this file.
1// Copyright 2017 The PDFium Authors
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 "xfa/fxfa/cxfa_ffbarcode.h"
6
7#include "testing/gtest/include/gtest/gtest.h"
8
9TEST(CXFA_FFBarcode, GetBarcodeTypeByName) {
10 EXPECT_EQ(BC_TYPE::kUnknown, CXFA_FFBarcode::GetBarcodeTypeByName(L""));
11 EXPECT_EQ(BC_TYPE::kUnknown,
12 CXFA_FFBarcode::GetBarcodeTypeByName(L"not_found"));
13
14 EXPECT_EQ(BC_TYPE::kEAN13, CXFA_FFBarcode::GetBarcodeTypeByName(L"ean13"));
15 EXPECT_EQ(BC_TYPE::kPDF417, CXFA_FFBarcode::GetBarcodeTypeByName(L"pdf417"));
16 EXPECT_EQ(BC_TYPE::kCode39,
17 CXFA_FFBarcode::GetBarcodeTypeByName(L"code3Of9"));
18}
BC_TYPE
Definition BC_Library.h:25
static BC_TYPE GetBarcodeTypeByName(const WideString &wsName)
TEST(CXFA_FFBarcode, GetBarcodeTypeByName)