• Home
  • Raw
  • Download

Lines Matching full:title

100     std::unique_ptr<unsigned short, pdfium::FreeDeleter> title =  in TEST_F()  local
102 EXPECT_EQ(nullptr, FPDFBookmark_Find(m_pDoc.get(), title.get())); in TEST_F()
104 title = GetFPDFWideString(L"Preface"); in TEST_F()
105 EXPECT_EQ(nullptr, FPDFBookmark_Find(m_pDoc.get(), title.get())); in TEST_F()
110 std::unique_ptr<unsigned short, pdfium::FreeDeleter> title = in TEST_F() local
112 EXPECT_EQ(nullptr, FPDFBookmark_Find(m_pDoc.get(), title.get())); in TEST_F()
114 title = GetFPDFWideString(L"Preface"); in TEST_F()
115 EXPECT_EQ(nullptr, FPDFBookmark_Find(m_pDoc.get(), title.get())); in TEST_F()
121 bookmarks[1].obj->SetNewFor<CPDF_String>("Title", L"Chapter 1"); in TEST_F()
127 bookmarks[2].obj->SetNewFor<CPDF_String>("Title", L"Chapter 2"); in TEST_F()
143 // Title with no match. in TEST_F()
144 std::unique_ptr<unsigned short, pdfium::FreeDeleter> title = in TEST_F() local
146 EXPECT_EQ(nullptr, FPDFBookmark_Find(m_pDoc.get(), title.get())); in TEST_F()
148 // Title with partial match only. in TEST_F()
149 title = GetFPDFWideString(L"Chapter"); in TEST_F()
150 EXPECT_EQ(nullptr, FPDFBookmark_Find(m_pDoc.get(), title.get())); in TEST_F()
152 // Title with a match. in TEST_F()
153 title = GetFPDFWideString(L"Chapter 2"); in TEST_F()
154 EXPECT_EQ(bookmarks[2].obj, FPDFBookmark_Find(m_pDoc.get(), title.get())); in TEST_F()
156 // Title match is case insensitive. in TEST_F()
157 title = GetFPDFWideString(L"cHaPter 2"); in TEST_F()
158 EXPECT_EQ(bookmarks[2].obj, FPDFBookmark_Find(m_pDoc.get(), title.get())); in TEST_F()
164 bookmarks[1].obj->SetNewFor<CPDF_String>("Title", L"Chapter 1"); in TEST_F()
170 bookmarks[2].obj->SetNewFor<CPDF_String>("Title", L"Chapter 2"); in TEST_F()
186 // Title with no match. in TEST_F()
187 std::unique_ptr<unsigned short, pdfium::FreeDeleter> title = in TEST_F() local
189 EXPECT_EQ(nullptr, FPDFBookmark_Find(m_pDoc.get(), title.get())); in TEST_F()
191 // Title with a match. in TEST_F()
192 title = GetFPDFWideString(L"Chapter 2"); in TEST_F()
193 EXPECT_EQ(bookmarks[2].obj, FPDFBookmark_Find(m_pDoc.get(), title.get())); in TEST_F()
199 bookmarks[1].obj->SetNewFor<CPDF_String>("Title", L"Chapter 1"); in TEST_F()
205 bookmarks[2].obj->SetNewFor<CPDF_String>("Title", L"Chapter 2"); in TEST_F()
211 bookmarks[3].obj->SetNewFor<CPDF_String>("Title", L"Chapter 3"); in TEST_F()
227 // Title with no match. in TEST_F()
228 std::unique_ptr<unsigned short, pdfium::FreeDeleter> title = in TEST_F() local
230 EXPECT_EQ(nullptr, FPDFBookmark_Find(m_pDoc.get(), title.get())); in TEST_F()
232 // Title with a match. in TEST_F()
233 title = GetFPDFWideString(L"Chapter 3"); in TEST_F()
234 EXPECT_EQ(bookmarks[3].obj, FPDFBookmark_Find(m_pDoc.get(), title.get())); in TEST_F()