diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-01-07 12:28:56 -0800 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-01-07 12:28:56 -0800 |
commit | a5c9431631c7305224c846e71b9c8f811c610f60 (patch) | |
tree | 5939c1cba8468eaa03e397efe1e6ac2f3763198e /testing/fx_string_testhelpers.h | |
parent | 22ee248278586790e9e748cbc2a01dacd39e6cf1 (diff) | |
download | pdfium-a5c9431631c7305224c846e71b9c8f811c610f60.tar.xz |
Merge to XFA: Add ostream helpers for FX String classes.
Original CL at https://codereview.chromium.org/837843002
TBR=brucedawson@chromium.org
Review URL: https://codereview.chromium.org/809313008
Diffstat (limited to 'testing/fx_string_testhelpers.h')
-rw-r--r-- | testing/fx_string_testhelpers.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/testing/fx_string_testhelpers.h b/testing/fx_string_testhelpers.h new file mode 100644 index 0000000000..7d0668817c --- /dev/null +++ b/testing/fx_string_testhelpers.h @@ -0,0 +1,19 @@ +// Copyright 2014 PDFium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef TESTING_FX_STRING_TESTHELPERS_H_ +#define TESTING_FX_STRING_TESTHELPERS_H_ + +#include <ostream> + +#include "../core/include/fxcrt/fx_basic.h" + +// Output stream operator so GTEST macros work with FX strings. +std::ostream& operator<<(std::ostream& out, const CFX_ByteStringC& str); +std::ostream& operator<<(std::ostream& out, const CFX_ByteString& str); +std::ostream& operator<<(std::ostream& out, const CFX_WideStringC& str); +std::ostream& operator<<(std::ostream& out, const CFX_WideString& str); + +#endif // TESTING_FX_STR_TESTHELPERS_H_ + |