Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <algorithm>
#include <utility>
#include <vector>
#include "build/build_config.h"
#include "core/fxge/fx_font.h"
#include "public/cpp/fpdf_scopers.h"
#include "public/fpdf_doc.h"
#include "public/fpdf_text.h"
#include "public/fpdf_transformpage.h"
#include "public/fpdfview.h"
#include "testing/embedder_test.h"
#include "testing/fx_string_testhelpers.h"
#include "testing/gtest/include/gtest/gtest.h"
Go to the source code of this file.
Classes | |
class | FPDFTextEmbedderTest |
Macros | |
#define | MAYBE_TextSearchLatinExtended TextSearchLatinExtended |
#define MAYBE_TextSearchLatinExtended TextSearchLatinExtended |
Definition at line 608 of file fpdf_text_embeddertest.cpp.
TEST_F | ( | FPDFTextEmbedderTest | , |
AnnotLinks | ) |
Definition at line 881 of file fpdf_text_embeddertest.cpp.
References FPDFLink_CountQuadPoints(), FPDFLink_Enumerate(), FPDFLink_GetAnnotRect(), FPDFLink_GetQuadPoints(), and FPDFPage_GetAnnotCount().
TEST_F | ( | FPDFTextEmbedderTest | , |
BigtableTextExtraction | ) |
Definition at line 1861 of file fpdf_text_embeddertest.cpp.
TEST_F | ( | FPDFTextEmbedderTest | , |
Bug1769 | ) |
Definition at line 1886 of file fpdf_text_embeddertest.cpp.
TEST_F | ( | FPDFTextEmbedderTest | , |
bug_1029 | ) |
Definition at line 1279 of file fpdf_text_embeddertest.cpp.
References FPDFText_ClosePage(), FPDFText_CountChars(), FPDFText_GetUnicode(), and FPDFText_LoadPage().
TEST_F | ( | FPDFTextEmbedderTest | , |
Bug_1139 | ) |
Definition at line 1492 of file fpdf_text_embeddertest.cpp.
References FPDFText_ClosePage(), FPDFText_CountChars(), FPDFText_GetText(), and FPDFText_LoadPage().
TEST_F | ( | FPDFTextEmbedderTest | , |
Bug_642 | ) |
Definition at line 1515 of file fpdf_text_embeddertest.cpp.
TEST_F | ( | FPDFTextEmbedderTest | , |
bug_782596 | ) |
Definition at line 1233 of file fpdf_text_embeddertest.cpp.
References FPDFText_ClosePage(), and FPDFText_LoadPage().
TEST_F | ( | FPDFTextEmbedderTest | , |
Bug_921 | ) |
Definition at line 1156 of file fpdf_text_embeddertest.cpp.
References FPDFText_ClosePage(), FPDFText_CountChars(), and FPDFText_LoadPage().
TEST_F | ( | FPDFTextEmbedderTest | , |
CharBox | ) |
Definition at line 1756 of file fpdf_text_embeddertest.cpp.
TEST_F | ( | FPDFTextEmbedderTest | , |
ControlCharacters | ) |
Definition at line 1244 of file fpdf_text_embeddertest.cpp.
References FPDFText_ClosePage(), FPDFText_GetText(), and FPDFText_LoadPage().
TEST_F | ( | FPDFTextEmbedderTest | , |
CountRects | ) |
Definition at line 1319 of file fpdf_text_embeddertest.cpp.
References FPDFText_ClosePage(), FPDFText_CountRects(), FPDFText_GetText(), and FPDFText_LoadPage().
TEST_F | ( | FPDFTextEmbedderTest | , |
CroppedText | ) |
Definition at line 1435 of file fpdf_text_embeddertest.cpp.
References FPDF_GetPageBoundingBox().
TEST_F | ( | FPDFTextEmbedderTest | , |
GetCharAngle | ) |
Definition at line 1539 of file fpdf_text_embeddertest.cpp.
References FPDFText_ClosePage(), FPDFText_CountChars(), FPDFText_GetCharAngle(), and FPDFText_LoadPage().
TEST_F | ( | FPDFTextEmbedderTest | , |
GetFillColor | ) |
Definition at line 1630 of file fpdf_text_embeddertest.cpp.
References FPDFText_ClosePage(), FPDFText_CountChars(), FPDFText_GetFillColor(), and FPDFText_LoadPage().
TEST_F | ( | FPDFTextEmbedderTest | , |
GetFontInfo | ) |
Definition at line 967 of file fpdf_text_embeddertest.cpp.
References FPDFText_ClosePage(), FPDFText_GetFontInfo(), and FPDFText_LoadPage().
TEST_F | ( | FPDFTextEmbedderTest | , |
GetFontSize | ) |
Definition at line 946 of file fpdf_text_embeddertest.cpp.
References FPDFText_ClosePage(), FPDFText_CountChars(), FPDFText_GetFontSize(), and FPDFText_LoadPage().
TEST_F | ( | FPDFTextEmbedderTest | , |
GetFontWeight | ) |
Definition at line 1577 of file fpdf_text_embeddertest.cpp.
References FPDFText_ClosePage(), FPDFText_CountChars(), FPDFText_GetFontWeight(), and FPDFText_LoadPage().
TEST_F | ( | FPDFTextEmbedderTest | , |
GetMatrix | ) |
Definition at line 1696 of file fpdf_text_embeddertest.cpp.
References FPDFText_GetMatrix().
TEST_F | ( | FPDFTextEmbedderTest | , |
GetStrokeColor | ) |
Definition at line 1663 of file fpdf_text_embeddertest.cpp.
References FPDFText_ClosePage(), FPDFText_CountChars(), FPDFText_GetStrokeColor(), and FPDFText_LoadPage().
TEST_F | ( | FPDFTextEmbedderTest | , |
GetText | ) |
Definition at line 1391 of file fpdf_text_embeddertest.cpp.
References FPDFPage_CountObjects(), FPDFPage_GetObject(), FPDFText_ClosePage(), FPDFText_LoadPage(), and FPDFTextObj_GetText().
TEST_F | ( | FPDFTextEmbedderTest | , |
GetTextRenderMode | ) |
Definition at line 1604 of file fpdf_text_embeddertest.cpp.
References FPDFText_ClosePage(), FPDFText_CountChars(), FPDFText_GetTextRenderMode(), and FPDFText_LoadPage().
TEST_F | ( | FPDFTextEmbedderTest | , |
GetTextWithHyphen | ) |
Definition at line 1186 of file fpdf_text_embeddertest.cpp.
References FPDFText_ClosePage(), and FPDFText_LoadPage().
TEST_F | ( | FPDFTextEmbedderTest | , |
IsGenerated | ) |
Definition at line 1064 of file fpdf_text_embeddertest.cpp.
References FPDFText_IsGenerated().
TEST_F | ( | FPDFTextEmbedderTest | , |
IsHyphen | ) |
Definition at line 1095 of file fpdf_text_embeddertest.cpp.
References FPDFText_IsHyphen().
TEST_F | ( | FPDFTextEmbedderTest | , |
IsInvalidUnicode | ) |
Definition at line 1126 of file fpdf_text_embeddertest.cpp.
References FPDFText_HasUnicodeMapError().
TEST_F | ( | FPDFTextEmbedderTest | , |
MAYBE_TextSearchLatinExtended | ) |
Definition at line 610 of file fpdf_text_embeddertest.cpp.
References FPDFText_ClosePage(), and FPDFText_LoadPage().
TEST_F | ( | FPDFTextEmbedderTest | , |
SmallType3Glyph | ) |
Definition at line 1805 of file fpdf_text_embeddertest.cpp.
TEST_F | ( | FPDFTextEmbedderTest | , |
StreamLengthPastEndOfFile | ) |
Definition at line 644 of file fpdf_text_embeddertest.cpp.
References FPDFText_ClosePage(), FPDFText_CountChars(), and FPDFText_LoadPage().
TEST_F | ( | FPDFTextEmbedderTest | , |
Text | ) |
Definition at line 42 of file fpdf_text_embeddertest.cpp.
References FPDFText_ClosePage(), FPDFText_CountChars(), FPDFText_CountRects(), FPDFText_GetBoundedText(), FPDFText_GetCharBox(), FPDFText_GetCharIndexAtPos(), FPDFText_GetCharOrigin(), FPDFText_GetFontSize(), FPDFText_GetLooseCharBox(), FPDFText_GetRect(), FPDFText_GetText(), and FPDFText_LoadPage().
TEST_F | ( | FPDFTextEmbedderTest | , |
TextHebrewMirrored | ) |
Definition at line 264 of file fpdf_text_embeddertest.cpp.
TEST_F | ( | FPDFTextEmbedderTest | , |
TextSearch | ) |
Definition at line 295 of file fpdf_text_embeddertest.cpp.
References FPDFText_ClosePage(), and FPDFText_LoadPage().
TEST_F | ( | FPDFTextEmbedderTest | , |
TextSearchConsecutive | ) |
Definition at line 411 of file fpdf_text_embeddertest.cpp.
References FPDFText_ClosePage(), and FPDFText_LoadPage().
TEST_F | ( | FPDFTextEmbedderTest | , |
TextSearchLeadingSpace | ) |
Definition at line 523 of file fpdf_text_embeddertest.cpp.
TEST_F | ( | FPDFTextEmbedderTest | , |
TextSearchSpaceInSearchTerm | ) |
Definition at line 575 of file fpdf_text_embeddertest.cpp.
TEST_F | ( | FPDFTextEmbedderTest | , |
TextSearchTermAtEnd | ) |
Definition at line 495 of file fpdf_text_embeddertest.cpp.
TEST_F | ( | FPDFTextEmbedderTest | , |
TextSearchTrailingSpace | ) |
Definition at line 549 of file fpdf_text_embeddertest.cpp.
TEST_F | ( | FPDFTextEmbedderTest | , |
TextVertical | ) |
Definition at line 227 of file fpdf_text_embeddertest.cpp.
References FPDFText_ClosePage(), FPDFText_GetCharOrigin(), FPDFText_GetFontSize(), FPDFText_GetLooseCharBox(), and FPDFText_LoadPage().
TEST_F | ( | FPDFTextEmbedderTest | , |
ToUnicode | ) |
Definition at line 1049 of file fpdf_text_embeddertest.cpp.
References FPDFText_ClosePage(), FPDFText_CountChars(), FPDFText_GetUnicode(), and FPDFText_LoadPage().
TEST_F | ( | FPDFTextEmbedderTest | , |
WebLinks | ) |
Definition at line 657 of file fpdf_text_embeddertest.cpp.
References FPDFLink_CloseWebLinks(), FPDFLink_CountRects(), FPDFLink_GetRect(), FPDFLink_GetURL(), FPDFLink_LoadWebLinks(), FPDFText_ClosePage(), and FPDFText_LoadPage().
TEST_F | ( | FPDFTextEmbedderTest | , |
WebLinksAcrossLines | ) |
Definition at line 767 of file fpdf_text_embeddertest.cpp.
References FPDFLink_CloseWebLinks(), FPDFLink_CountWebLinks(), FPDFLink_GetURL(), FPDFLink_LoadWebLinks(), FPDFText_ClosePage(), and FPDFText_LoadPage().
TEST_F | ( | FPDFTextEmbedderTest | , |
WebLinksAcrossLinesBug | ) |
Definition at line 807 of file fpdf_text_embeddertest.cpp.
References FPDFLink_CloseWebLinks(), FPDFLink_CountWebLinks(), FPDFLink_GetURL(), FPDFLink_LoadWebLinks(), FPDFText_ClosePage(), and FPDFText_LoadPage().
TEST_F | ( | FPDFTextEmbedderTest | , |
WebLinksCharRanges | ) |
Definition at line 833 of file fpdf_text_embeddertest.cpp.
References FPDFLink_CloseWebLinks(), FPDFLink_GetTextRange(), FPDFLink_LoadWebLinks(), FPDFText_ClosePage(), and FPDFText_LoadPage().