44 CPDFDocumentFromFPDFDocument(m_pDoc.get()));
48 EXPECT_FALSE(FPDFCatalog_IsTagged(m_pDoc.get()));
51 pTestDoc->SetRoot(m_pRootObj);
52 EXPECT_FALSE(FPDFCatalog_IsTagged(m_pDoc.get()));
55 m_pRootObj->SetNewFor<CPDF_String>(
"OTHER_KEY",
"other value",
false);
56 EXPECT_FALSE(FPDFCatalog_IsTagged(m_pDoc.get()));
59 auto markInfoDict = m_pRootObj->SetNewFor<CPDF_Dictionary>(
"MarkInfo");
60 EXPECT_FALSE(FPDFCatalog_IsTagged(m_pDoc.get()));
63 markInfoDict->SetNewFor<CPDF_Number>(
"Marked", 0);
64 EXPECT_FALSE(FPDFCatalog_IsTagged(m_pDoc.get()));
67 markInfoDict->SetNewFor<CPDF_Number>(
"Marked", 1);
68 EXPECT_TRUE(FPDFCatalog_IsTagged(m_pDoc.get()));