Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(104)

Side by Side Diff: fpdfsdk/fpdfdoc_unittest.cpp

Issue 2385423004: Rename fpdfsdk/fpdfxfa files to match contents (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fpdfsdk/fpdf_ext.cpp ('k') | fpdfsdk/fpdfeditpage.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "public/fpdf_doc.h" 5 #include "public/fpdf_doc.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <vector> 8 #include <vector>
9 9
10 #include "core/fpdfapi/cpdf_modulemgr.h" 10 #include "core/fpdfapi/cpdf_modulemgr.h"
11 #include "core/fpdfapi/parser/cpdf_document.h" 11 #include "core/fpdfapi/parser/cpdf_document.h"
12 #include "core/fpdfapi/parser/cpdf_name.h" 12 #include "core/fpdfapi/parser/cpdf_name.h"
13 #include "core/fpdfapi/parser/cpdf_number.h" 13 #include "core/fpdfapi/parser/cpdf_number.h"
14 #include "core/fpdfapi/parser/cpdf_parser.h" 14 #include "core/fpdfapi/parser/cpdf_parser.h"
15 #include "core/fpdfapi/parser/cpdf_reference.h" 15 #include "core/fpdfapi/parser/cpdf_reference.h"
16 #include "core/fpdfapi/parser/cpdf_string.h" 16 #include "core/fpdfapi/parser/cpdf_string.h"
17 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
18 #include "testing/test_support.h" 18 #include "testing/test_support.h"
19 #include "third_party/base/ptr_util.h" 19 #include "third_party/base/ptr_util.h"
20 20
21 #ifdef PDF_ENABLE_XFA 21 #ifdef PDF_ENABLE_XFA
22 #include "fpdfsdk/fpdfxfa/fpdfxfa_app.h" 22 #include "fpdfsdk/fpdfxfa/cpdfxfa_app.h"
23 #include "fpdfsdk/fpdfxfa/fpdfxfa_doc.h" 23 #include "fpdfsdk/fpdfxfa/cpdfxfa_document.h"
24 #endif // PDF_ENABLE_XFA 24 #endif // PDF_ENABLE_XFA
25 25
26 class CPDF_TestDocument : public CPDF_Document { 26 class CPDF_TestDocument : public CPDF_Document {
27 public: 27 public:
28 CPDF_TestDocument() : CPDF_Document(std::unique_ptr<CPDF_Parser>()) {} 28 CPDF_TestDocument() : CPDF_Document(std::unique_ptr<CPDF_Parser>()) {}
29 29
30 void SetRoot(CPDF_Dictionary* root) { m_pRootDict = root; } 30 void SetRoot(CPDF_Dictionary* root) { m_pRootDict = root; }
31 CPDF_IndirectObjectHolder* GetHolder() { return this; } 31 CPDF_IndirectObjectHolder* GetHolder() { return this; }
32 }; 32 };
33 33
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 // Title with no match. 225 // Title with no match.
226 std::unique_ptr<unsigned short, pdfium::FreeDeleter> title = 226 std::unique_ptr<unsigned short, pdfium::FreeDeleter> title =
227 GetFPDFWideString(L"Chapter 8"); 227 GetFPDFWideString(L"Chapter 8");
228 EXPECT_EQ(nullptr, FPDFBookmark_Find(m_pDoc.get(), title.get())); 228 EXPECT_EQ(nullptr, FPDFBookmark_Find(m_pDoc.get(), title.get()));
229 229
230 // Title with a match. 230 // Title with a match.
231 title = GetFPDFWideString(L"Chapter 3"); 231 title = GetFPDFWideString(L"Chapter 3");
232 EXPECT_EQ(bookmarks[3].obj, FPDFBookmark_Find(m_pDoc.get(), title.get())); 232 EXPECT_EQ(bookmarks[3].obj, FPDFBookmark_Find(m_pDoc.get(), title.get()));
233 } 233 }
234 } 234 }
OLDNEW
« no previous file with comments | « fpdfsdk/fpdf_ext.cpp ('k') | fpdfsdk/fpdfeditpage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698