10#include <boost/algorithm/string.hpp>
11#include <gtest/gtest.h>
26 EXPECT_EQ(pretty_print_a, pretty_print_b)
37 EXPECT_EQ(pretty_print_a, pretty_print_b)
43#ifdef HAVE_CREATE_UNIFIED_DIFF
45 vector<string> left_lines;
46 boost::split(left_lines, left, boost::is_any_of(
"\n"));
47 vector<string> right_lines;
48 boost::split(right_lines, right, boost::is_any_of(
"\n"));
49 using namespace testing::internal;
50 return (edit_distance::CreateUnifiedDiff(left_lines, right_lines));
54 return (
"N/A: !HAVE_CREATE_UNIFIED_DIFF");
void prettyPrint(ConstElementPtr element, std::ostream &out, unsigned indent, unsigned step)
Pretty prints the data into stream.
boost::shared_ptr< const Element > ConstElementPtr
boost::shared_ptr< Element > ElementPtr
void expectEqWithDiff(ConstElementPtr const &a, ConstElementPtr const &b)
Expect two element pointers to be equal.
std::string generateDiff(std::string, std::string)
Return the difference between two strings.
Defines the logger used by the top-level component of kea-lfc.