Lines Matching refs:bookmarks
98 auto bookmarks = CreateDictObjs(3); in TEST_F() local
100 bookmarks[1].obj->SetNewFor<CPDF_String>("Title", L"Chapter 1"); in TEST_F()
101 bookmarks[1].obj->SetNewFor<CPDF_Reference>("Parent", m_pIndirectObjs.Get(), in TEST_F()
102 bookmarks[0].num); in TEST_F()
103 bookmarks[1].obj->SetNewFor<CPDF_Reference>("Next", m_pIndirectObjs.Get(), in TEST_F()
104 bookmarks[2].num); in TEST_F()
106 bookmarks[2].obj->SetNewFor<CPDF_String>("Title", L"Chapter 2"); in TEST_F()
107 bookmarks[2].obj->SetNewFor<CPDF_Reference>("Parent", m_pIndirectObjs.Get(), in TEST_F()
108 bookmarks[0].num); in TEST_F()
109 bookmarks[2].obj->SetNewFor<CPDF_Reference>("Prev", m_pIndirectObjs.Get(), in TEST_F()
110 bookmarks[1].num); in TEST_F()
112 bookmarks[0].obj->SetNewFor<CPDF_Name>("Type", "Outlines"); in TEST_F()
113 bookmarks[0].obj->SetNewFor<CPDF_Number>("Count", 2); in TEST_F()
114 bookmarks[0].obj->SetNewFor<CPDF_Reference>("First", m_pIndirectObjs.Get(), in TEST_F()
115 bookmarks[1].num); in TEST_F()
116 bookmarks[0].obj->SetNewFor<CPDF_Reference>("Last", m_pIndirectObjs.Get(), in TEST_F()
117 bookmarks[2].num); in TEST_F()
120 bookmarks[0].num); in TEST_F()
132 EXPECT_EQ(FPDFBookmarkFromCPDFDictionary(bookmarks[2].obj), in TEST_F()
137 EXPECT_EQ(FPDFBookmarkFromCPDFDictionary(bookmarks[2].obj), in TEST_F()
142 auto bookmarks = CreateDictObjs(3); in TEST_F() local
144 bookmarks[1].obj->SetNewFor<CPDF_String>("Title", L"Chapter 1"); in TEST_F()
145 bookmarks[1].obj->SetNewFor<CPDF_Reference>("Parent", m_pIndirectObjs.Get(), in TEST_F()
146 bookmarks[0].num); in TEST_F()
147 bookmarks[1].obj->SetNewFor<CPDF_Reference>("First", m_pIndirectObjs.Get(), in TEST_F()
148 bookmarks[2].num); in TEST_F()
150 bookmarks[2].obj->SetNewFor<CPDF_String>("Title", L"Chapter 2"); in TEST_F()
151 bookmarks[2].obj->SetNewFor<CPDF_Reference>("Parent", m_pIndirectObjs.Get(), in TEST_F()
152 bookmarks[1].num); in TEST_F()
153 bookmarks[2].obj->SetNewFor<CPDF_Reference>("First", m_pIndirectObjs.Get(), in TEST_F()
154 bookmarks[1].num); in TEST_F()
156 bookmarks[0].obj->SetNewFor<CPDF_Name>("Type", "Outlines"); in TEST_F()
157 bookmarks[0].obj->SetNewFor<CPDF_Number>("Count", 2); in TEST_F()
158 bookmarks[0].obj->SetNewFor<CPDF_Reference>("First", m_pIndirectObjs.Get(), in TEST_F()
159 bookmarks[1].num); in TEST_F()
160 bookmarks[0].obj->SetNewFor<CPDF_Reference>("Last", m_pIndirectObjs.Get(), in TEST_F()
161 bookmarks[2].num); in TEST_F()
164 bookmarks[0].num); in TEST_F()
172 EXPECT_EQ(FPDFBookmarkFromCPDFDictionary(bookmarks[2].obj), in TEST_F()
177 auto bookmarks = CreateDictObjs(4); in TEST_F() local
179 bookmarks[1].obj->SetNewFor<CPDF_String>("Title", L"Chapter 1"); in TEST_F()
180 bookmarks[1].obj->SetNewFor<CPDF_Reference>("Parent", m_pIndirectObjs.Get(), in TEST_F()
181 bookmarks[0].num); in TEST_F()
182 bookmarks[1].obj->SetNewFor<CPDF_Reference>("Next", m_pIndirectObjs.Get(), in TEST_F()
183 bookmarks[2].num); in TEST_F()
185 bookmarks[2].obj->SetNewFor<CPDF_String>("Title", L"Chapter 2"); in TEST_F()
186 bookmarks[2].obj->SetNewFor<CPDF_Reference>("Parent", m_pIndirectObjs.Get(), in TEST_F()
187 bookmarks[0].num); in TEST_F()
188 bookmarks[2].obj->SetNewFor<CPDF_Reference>("Next", m_pIndirectObjs.Get(), in TEST_F()
189 bookmarks[3].num); in TEST_F()
191 bookmarks[3].obj->SetNewFor<CPDF_String>("Title", L"Chapter 3"); in TEST_F()
192 bookmarks[3].obj->SetNewFor<CPDF_Reference>("Parent", m_pIndirectObjs.Get(), in TEST_F()
193 bookmarks[0].num); in TEST_F()
194 bookmarks[3].obj->SetNewFor<CPDF_Reference>("Next", m_pIndirectObjs.Get(), in TEST_F()
195 bookmarks[1].num); in TEST_F()
197 bookmarks[0].obj->SetNewFor<CPDF_Name>("Type", "Outlines"); in TEST_F()
198 bookmarks[0].obj->SetNewFor<CPDF_Number>("Count", 2); in TEST_F()
199 bookmarks[0].obj->SetNewFor<CPDF_Reference>("First", m_pIndirectObjs.Get(), in TEST_F()
200 bookmarks[1].num); in TEST_F()
201 bookmarks[0].obj->SetNewFor<CPDF_Reference>("Last", m_pIndirectObjs.Get(), in TEST_F()
202 bookmarks[2].num); in TEST_F()
205 bookmarks[0].num); in TEST_F()
213 EXPECT_EQ(FPDFBookmarkFromCPDFDictionary(bookmarks[3].obj), in TEST_F()