From c89cafa820ec02f041c3b0e52877bc321f6a1ba9 Mon Sep 17 00:00:00 2001 From: ipknHama Date: Sun, 7 Sep 2014 01:24:45 +0900 Subject: add Middlewares template to Crow main class, context implementation --- tests/unittest.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'tests') diff --git a/tests/unittest.cpp b/tests/unittest.cpp index 918d027..17bc53c 100644 --- a/tests/unittest.cpp +++ b/tests/unittest.cpp @@ -112,7 +112,7 @@ TEST(ParameterTagging) TEST(RoutingTest) { - Crow app; + SimpleApp app; int A{}; uint32_t B{}; double C{}; @@ -238,7 +238,7 @@ TEST(simple_response_routing_params) TEST(handler_with_response) { - Crow app; + SimpleApp app; CROW_ROUTE(app, "/")([](const crow::request&, crow::response&) { }); @@ -247,9 +247,9 @@ TEST(handler_with_response) TEST(server_handling_error_request) { static char buf[2048]; - Crow app; + SimpleApp app; CROW_ROUTE(app, "/")([]{return "A";}); - Server server(&app, 45451); + Server server(&app, 45451); auto _ = async(launch::async, [&]{server.run();}); std::string sendmsg = "POX"; asio::io_service is; @@ -276,12 +276,12 @@ TEST(server_handling_error_request) TEST(multi_server) { static char buf[2048]; - Crow app1, app2; + SimpleApp app1, app2; CROW_ROUTE(app1, "/")([]{return "A";}); CROW_ROUTE(app2, "/")([]{return "B";}); - Server server1(&app1, 45451); - Server server2(&app2, 45452); + Server server1(&app1, 45451); + Server server2(&app2, 45452); auto _ = async(launch::async, [&]{server1.run();}); auto _2 = async(launch::async, [&]{server2.run();}); -- cgit v1.2.3-54-g00ecf