From 6b2a9dabbfad4d64268967a32dff0f1dc55763de Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sat, 16 May 2020 13:28:52 +0200 Subject: Makefile cleanup, included missing files --- test-webserver.cpp | 44 -------------------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 test-webserver.cpp (limited to 'test-webserver.cpp') diff --git a/test-webserver.cpp b/test-webserver.cpp deleted file mode 100644 index f7020af..0000000 --- a/test-webserver.cpp +++ /dev/null @@ -1,44 +0,0 @@ -#include "gmock/gmock.h" -#include "gtest/gtest.h" - -#include -#include - -#include -#include - -using namespace std::string_literals; -namespace pt = boost::property_tree; - -TEST(property_tree, put) -{ - pt::ptree p; - pt::ptree list; - - pt::ptree entry; - - entry.put_value("name1.txt"); - entry.put(".type", "file1"); - - list.push_back(pt::ptree::value_type("listentry", entry)); - - entry.put_value("name2.txt"); - entry.put(".type", "file2"); - - list.push_back(pt::ptree::value_type("listentry", entry)); - - p.push_back(pt::ptree::value_type("list", list)); - - std::stringstream ss; - - pt::xml_parser::write_xml(ss, p /*, pt::xml_parser::xml_writer_make_settings(' ', 1)*/); - - EXPECT_EQ(ss.str(), "\nname1.txtname2.txt"); -} - - -int main(int argc, char* argv[]) { - ::testing::InitGoogleMock(&argc, argv); - return RUN_ALL_TESTS(); -} - -- cgit v1.2.3