Chromium Code Reviews| Index: testing/test_support.h |
| diff --git a/testing/test_support.h b/testing/test_support.h |
| index 945704194d53855f444db43636d6217753357726..c0b21e4953a70cb713cbcc4dea891e0a84031846 100644 |
| --- a/testing/test_support.h |
| +++ b/testing/test_support.h |
| @@ -10,6 +10,7 @@ |
| #include <string> |
| #include "public/fpdfview.h" |
| +#include "public/fpdf_save.h" |
| #ifdef PDF_ENABLE_V8 |
| #include "v8/include/v8.h" |
| @@ -62,4 +63,18 @@ class TestLoader { |
| const size_t m_Len; |
| }; |
| +class TestSaver : public FPDF_FILEWRITE { |
| + public: |
| + TestSaver(); |
|
Lei Zhang
2016/01/07 00:43:59
blank line after
Tom Sepez
2016/01/07 20:16:24
Done.
|
| + void ClearString(); |
| + const std::string& GetString() const { return m_String; } |
| + |
| + private: |
| + static int WriteBlockCallback(FPDF_FILEWRITE* pFileWrite, |
| + const void* data, |
| + unsigned long size); |
| + |
| + std::string m_String; |
| +}; |
| + |
| #endif // TESTING_EMBEDDER_TEST_SUPPORT_H_ |