Henrique Nakashima | b9776c7 | 2017-06-23 15:03:50 -0400 | [diff] [blame] | 1 | // Copyright 2014 PDFium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #include "testing/fx_string_testhelpers.h" |
| 6 | |
| 7 | #include <iomanip> |
| 8 | #include <ios> |
| 9 | #include <string> |
| 10 | |
| 11 | std::ostream& operator<<(std::ostream& os, const CFX_DateTime& dt) { |
| 12 | os << dt.GetYear() << "-" << std::to_string(dt.GetMonth()) << "-" |
| 13 | << std::to_string(dt.GetDay()) << " " << std::to_string(dt.GetHour()) |
| 14 | << ":" << std::to_string(dt.GetMinute()) << ":" |
| 15 | << std::to_string(dt.GetSecond()) << "." |
| 16 | << std::to_string(dt.GetMillisecond()); |
| 17 | return os; |
| 18 | } |
Lei Zhang | 86688de | 2018-05-22 22:06:49 +0000 | [diff] [blame^] | 19 | |
| 20 | CFX_InvalidSeekableReadStream::CFX_InvalidSeekableReadStream( |
| 21 | FX_FILESIZE data_size) |
| 22 | : data_size_(data_size) {} |
| 23 | |
| 24 | CFX_InvalidSeekableReadStream::~CFX_InvalidSeekableReadStream() = default; |
| 25 | |
| 26 | CFX_BufferSeekableReadStream::CFX_BufferSeekableReadStream( |
| 27 | const unsigned char* src, |
| 28 | size_t src_size) |
| 29 | : data_(src), data_size_(src_size) {} |
| 30 | |
| 31 | CFX_BufferSeekableReadStream::~CFX_BufferSeekableReadStream() = default; |