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
9
TEST
(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
BC_TYPE
Definition
BC_Library.h:25
BC_TYPE::kEAN13
@ kEAN13
BC_TYPE::kUnknown
@ kUnknown
BC_TYPE::kPDF417
@ kPDF417
BC_TYPE::kCode39
@ kCode39
CXFA_FFBarcode::GetBarcodeTypeByName
static BC_TYPE GetBarcodeTypeByName(const WideString &wsName)
Definition
cxfa_ffbarcode.cpp:125
TEST
TEST(CXFA_FFBarcode, GetBarcodeTypeByName)
Definition
cxfa_ffbarcode_unittest.cpp:9
qtwebengine
src
3rdparty
chromium
third_party
pdfium
xfa
fxfa
cxfa_ffbarcode_unittest.cpp
Generated on Sat Sep 21 2024 01:01:09 for Qt by
1.12.0