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

Side by Side Diff: testing/embedder_test.h

Issue 872563002: Fix null crash in CheckTrailer. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Better location for test file. Created 5 years, 11 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 | « pdfium.gyp ('k') | testing/resources/trailer_as_hexstring.in » ('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 (c) 2015 PDFium Authors. All rights reserved. 1 // Copyright (c) 2015 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 #ifndef TESTING_EMBEDDER_TEST_H_ 5 #ifndef TESTING_EMBEDDER_TEST_H_
6 #define TESTING_EMBEDDER_TEST_H_ 6 #define TESTING_EMBEDDER_TEST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "../core/include/fxcrt/fx_system.h" 10 #include "../core/include/fxcrt/fx_system.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 // Load a specific page of the open document. 58 // Load a specific page of the open document.
59 virtual FPDF_PAGE LoadPage(int page_number, FPDF_FORMHANDLE form); 59 virtual FPDF_PAGE LoadPage(int page_number, FPDF_FORMHANDLE form);
60 60
61 // Convert a loaded page into a bitmap. 61 // Convert a loaded page into a bitmap.
62 virtual FPDF_BITMAP RenderPage(FPDF_PAGE page, FPDF_FORMHANDLE form); 62 virtual FPDF_BITMAP RenderPage(FPDF_PAGE page, FPDF_FORMHANDLE form);
63 63
64 // Relese the resources obtained from LoadPage(). Further use of |page| 64 // Relese the resources obtained from LoadPage(). Further use of |page|
65 // is prohibited after this call is made. 65 // is prohibited after this call is made.
66 virtual void UnloadPage(FPDF_PAGE page, FPDF_FORMHANDLE form); 66 virtual void UnloadPage(FPDF_PAGE page, FPDF_FORMHANDLE form);
67 67
68 private: 68 protected:
69 FPDF_DOCUMENT document_; 69 FPDF_DOCUMENT document_;
70 FPDF_AVAIL avail_; 70 FPDF_AVAIL avail_;
71 FX_DOWNLOADHINTS hints_; 71 FX_DOWNLOADHINTS hints_;
72 FPDF_FILEACCESS file_access_; 72 FPDF_FILEACCESS file_access_;
73 FX_FILEAVAIL file_avail_; 73 FX_FILEAVAIL file_avail_;
74 v8::StartupData natives_; 74 v8::StartupData natives_;
75 v8::StartupData snapshot_; 75 v8::StartupData snapshot_;
76 TestLoader* loader_; 76 TestLoader* loader_;
77 size_t file_length_; 77 size_t file_length_;
78 char* file_contents_; 78 char* file_contents_;
79 }; 79 };
80 80
81 #endif // TESTING_EMBEDDER_TEST_H_ 81 #endif // TESTING_EMBEDDER_TEST_H_
82 82
OLDNEW
« no previous file with comments | « pdfium.gyp ('k') | testing/resources/trailer_as_hexstring.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698