blob: e2ce9353fb6b59f29096b9ed99c892a3abd2532c [file] [log] [blame]
Henrique Nakashimab9776c72017-06-23 15:03:50 -04001// 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
11std::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 Zhang86688de2018-05-22 22:06:49 +000019
20CFX_InvalidSeekableReadStream::CFX_InvalidSeekableReadStream(
21 FX_FILESIZE data_size)
22 : data_size_(data_size) {}
23
24CFX_InvalidSeekableReadStream::~CFX_InvalidSeekableReadStream() = default;
25
26CFX_BufferSeekableReadStream::CFX_BufferSeekableReadStream(
27 const unsigned char* src,
28 size_t src_size)
29 : data_(src), data_size_(src_size) {}
30
31CFX_BufferSeekableReadStream::~CFX_BufferSeekableReadStream() = default;