| 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_TEST_SUPPORT_H_ |
| 6 #define TESTING_EMBEDDER_TEST_SUPPORT_H_ | 6 #define TESTING_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/fpdfview.h" | 12 #include "public/fpdfview.h" |
| 13 #include "public/fpdf_save.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" |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 const std::string& GetString() const { return m_String; } | 100 const std::string& GetString() const { return m_String; } |
| 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_TEST_SUPPORT_H_ |
| OLD | NEW |