Home
last modified time | relevance | path

Searched refs:rtf_break (Results 1 – 2 of 2) sorted by relevance

/external/pdfium/xfa/fgas/layout/
Dcfx_rtfbreak_unittest.cpp30 auto rtf_break = pdfium::MakeUnique<CFX_RTFBreak>(layout_styles); in CreateBreak() local
31 rtf_break->SetFont(font_); in CreateBreak()
32 return rtf_break; in CreateBreak()
43 auto rtf_break = CreateBreak(FX_LAYOUTSTYLE_ExpandTab); in TEST_F() local
47 EXPECT_EQ(CFX_BreakType::None, rtf_break->AppendChar(ch)); in TEST_F()
49 EXPECT_EQ(CFX_BreakType::Paragraph, rtf_break->AppendChar(L'\n')); in TEST_F()
50 ASSERT_EQ(1, rtf_break->CountBreakPieces()); in TEST_F()
51 EXPECT_EQ(str + L"\n", rtf_break->GetBreakPieceUnstable(0)->GetString()); in TEST_F()
53 rtf_break->ClearBreakPieces(); in TEST_F()
54 rtf_break->Reset(); in TEST_F()
[all …]
/external/pdfium/testing/fuzzers/
Dpdf_bidi_fuzzer.cc23 CFX_RTFBreak rtf_break(FX_LAYOUTSTYLE_ExpandTab); in LLVMFuzzerTestOneInput() local
24 rtf_break.SetLineBreakTolerance(1); in LLVMFuzzerTestOneInput()
25 rtf_break.SetFont(CFGAS_GEFont::LoadFont(std::move(font), fontmgr.get())); in LLVMFuzzerTestOneInput()
26 rtf_break.SetFontSize(12); in LLVMFuzzerTestOneInput()
32 rtf_break.AppendChar(ch); in LLVMFuzzerTestOneInput()
35 rtf_break.GetCurrentLineForTesting()->m_LineChars; in LLVMFuzzerTestOneInput()