diff options
author | Lei Zhang <thestig@chromium.org> | 2018-05-22 22:06:49 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-05-22 22:06:49 +0000 |
commit | 86688dea3b0d30741a95fd15b5f9ee57b2ae86f1 (patch) | |
tree | a858f201cdc8d0823496dcfcf15d22bff1c402a8 /testing/fx_string_testhelpers.cpp | |
parent | 96c9517296c94cfa643d6197c8227879d88876d9 (diff) | |
download | pdfium-86688dea3b0d30741a95fd15b5f9ee57b2ae86f1.tar.xz |
Make friend RetainPtr<T> statements consistently public.
Also make destructors private for RetainPtr sub-classes, and add missing
destructors.
Change-Id: I451bf0aae2dae943b1f450d0aa4ca5124dc578fd
Reviewed-on: https://pdfium-review.googlesource.com/32853
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'testing/fx_string_testhelpers.cpp')
-rw-r--r-- | testing/fx_string_testhelpers.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testing/fx_string_testhelpers.cpp b/testing/fx_string_testhelpers.cpp index 443cc89ed1..e2ce9353fb 100644 --- a/testing/fx_string_testhelpers.cpp +++ b/testing/fx_string_testhelpers.cpp @@ -16,3 +16,16 @@ std::ostream& operator<<(std::ostream& os, const CFX_DateTime& dt) { << std::to_string(dt.GetMillisecond()); return os; } + +CFX_InvalidSeekableReadStream::CFX_InvalidSeekableReadStream( + FX_FILESIZE data_size) + : data_size_(data_size) {} + +CFX_InvalidSeekableReadStream::~CFX_InvalidSeekableReadStream() = default; + +CFX_BufferSeekableReadStream::CFX_BufferSeekableReadStream( + const unsigned char* src, + size_t src_size) + : data_(src), data_size_(src_size) {} + +CFX_BufferSeekableReadStream::~CFX_BufferSeekableReadStream() = default; |