10 #include <boost/algorithm/string.hpp>
11 #include <gtest/gtest.h>
18 #ifdef HAVE_CREATE_UNIFIED_DIFF
19 std::string
generateDiff(std::string left, std::string right) {
20 std::vector<std::string> left_lines;
21 boost::split(left_lines, left, boost::is_any_of(
"\n"));
22 std::vector<std::string> right_lines;
23 boost::split(right_lines, right, boost::is_any_of(
"\n"));
24 using namespace testing::internal;
25 return (edit_distance::CreateUnifiedDiff(left_lines, right_lines));
std::string generateDiff(std::string, std::string)
Return the difference between two strings.
Defines the logger used by the top-level component of kea-dhcp-ddns.