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 #include "testing/test_support.h" | 5 #include "testing/test_support.h" |
6 | 6 |
7 #include <stdio.h> | 7 #include <stdio.h> |
8 #include <string.h> | 8 #include <string.h> |
9 | 9 |
| 10 #include <string> |
| 11 |
10 #include "testing/utils/path_service.h" | 12 #include "testing/utils/path_service.h" |
11 | 13 |
12 #ifdef PDF_ENABLE_V8 | 14 #ifdef PDF_ENABLE_V8 |
13 #include "v8/include/libplatform/libplatform.h" | 15 #include "v8/include/libplatform/libplatform.h" |
14 #endif | 16 #endif |
15 | 17 |
16 namespace { | 18 namespace { |
17 | 19 |
18 #ifdef PDF_ENABLE_V8 | 20 #ifdef PDF_ENABLE_V8 |
19 #ifdef V8_USE_EXTERNAL_STARTUP_DATA | 21 #ifdef V8_USE_EXTERNAL_STARTUP_DATA |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 } | 185 } |
184 | 186 |
185 // static | 187 // static |
186 int TestSaver::WriteBlockCallback(FPDF_FILEWRITE* pFileWrite, | 188 int TestSaver::WriteBlockCallback(FPDF_FILEWRITE* pFileWrite, |
187 const void* data, | 189 const void* data, |
188 unsigned long size) { | 190 unsigned long size) { |
189 TestSaver* pThis = static_cast<TestSaver*>(pFileWrite); | 191 TestSaver* pThis = static_cast<TestSaver*>(pFileWrite); |
190 pThis->m_String.append(static_cast<const char*>(data), size); | 192 pThis->m_String.append(static_cast<const char*>(data), size); |
191 return 1; | 193 return 1; |
192 } | 194 } |
OLD | NEW |