Add an include of gtest-printers.h to appease the buildbots.

llvm-svn: 305396
This commit is contained in:
Zachary Turner 2017-06-14 16:49:38 +00:00
parent cb30e705d8
commit 1953434f29
1 changed files with 2 additions and 1 deletions

View File

@ -12,6 +12,7 @@
#include "llvm/ADT/StringRef.h" #include "llvm/ADT/StringRef.h"
#include "llvm/Support/Error.h" #include "llvm/Support/Error.h"
#include "gtest/gtest-printers.h"
namespace llvm { namespace llvm {
namespace detail { namespace detail {
@ -34,7 +35,7 @@ inline void PrintTo(const ErrorHolder &Err, std::ostream *Out) {
template <typename T> template <typename T>
void PrintTo(const ExpectedHolder<T> &Item, std::ostream *Out) { void PrintTo(const ExpectedHolder<T> &Item, std::ostream *Out) {
if (Item.Success) { if (Item.Success) {
*Out << "succeeded with value \"" << testing::PrintToString(**Item.Value) *Out << "succeeded with value \"" << ::testing::PrintToString(**Item.Value)
<< "\""; << "\"";
} else { } else {
PrintTo(static_cast<const ErrorHolder &>(Item), Out); PrintTo(static_cast<const ErrorHolder &>(Item), Out);