| OLD | NEW |
| 1 // Copyright 2015 PDFium Authors. All rights reserved. | 1 // Copyright 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_SUPPORT_H_ | 5 #ifndef TESTING_EMBEDDER_TEST_SUPPORT_H_ |
| 6 #define TESTING_EMBEDDER_TEST_SUPPORT_H_ | 6 #define TESTING_EMBEDDER_TEST_SUPPORT_H_ |
| 7 | 7 |
| 8 #include <stdlib.h> | 8 #include <stdlib.h> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "public/fpdf_save.h" |
| 12 #include "public/fpdfview.h" | 13 #include "public/fpdfview.h" |
| 13 #include "public/fpdf_save.h" | |
| 14 | 14 |
| 15 #ifdef PDF_ENABLE_V8 | 15 #ifdef PDF_ENABLE_V8 |
| 16 #include "v8/include/v8.h" | 16 #include "v8/include/v8.h" |
| 17 #endif // PDF_ENABLE_V8 | 17 #endif // PDF_ENABLE_V8 |
| 18 | 18 |
| 19 namespace pdfium { | 19 namespace pdfium { |
| 20 | 20 |
| 21 #define STR_IN_TEST_CASE(input_literal, ...) \ | 21 #define STR_IN_TEST_CASE(input_literal, ...) \ |
| 22 { \ | 22 { \ |
| 23 (const unsigned char*) input_literal, sizeof(input_literal) - 1, \ | 23 (const unsigned char*) input_literal, sizeof(input_literal) - 1, \ |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 | 101 |
| 102 private: | 102 private: |
| 103 static int WriteBlockCallback(FPDF_FILEWRITE* pFileWrite, | 103 static int WriteBlockCallback(FPDF_FILEWRITE* pFileWrite, |
| 104 const void* data, | 104 const void* data, |
| 105 unsigned long size); | 105 unsigned long size); |
| 106 | 106 |
| 107 std::string m_String; | 107 std::string m_String; |
| 108 }; | 108 }; |
| 109 | 109 |
| 110 #endif // TESTING_EMBEDDER_TEST_SUPPORT_H_ | 110 #endif // TESTING_EMBEDDER_TEST_SUPPORT_H_ |
| OLD | NEW |