File tree Expand file tree Collapse file tree 4 files changed +44
-9
lines changed Expand file tree Collapse file tree 4 files changed +44
-9
lines changed Original file line number Diff line number Diff line change
1
+ // Copyright 2013 (c) Google, Inc.
2
+ // Copyright 2013 (c) Dean Michael Berris <dberris@google.com>
3
+ // Distributed under the Boost Software License, Version 1.0.
4
+ // (See accompanying file LICENSE_1_0.txt or copy at
5
+ // http://www.boost.org/LICENSE_1_0.txt)
6
+
7
+ #ifndef NETWORK_HTTP_SERVER_DEFAULT_CONNECTION_MANAGER_20130408
8
+ #define NETWORK_HTTP_SERVER_DEFAULT_CONNECTION_MANAGER_20130408
9
+
10
+ namespace network {
11
+ namespace http {
12
+
13
+ struct default_connection_manager {
14
+ };
15
+
16
+ } // namespace http
17
+ } // namespace network
18
+
19
+ #endif /* end of include guard: NETWORK_HTTP_SERVER_DEFAULT_CONNECTION_MANAGER_20130408 */
Original file line number Diff line number Diff line change @@ -27,12 +27,8 @@ set( CPP-NETLIB_LOGGING_LIB cppnetlib-logging )
27
27
28
28
if (CPP-NETLIB_BUILD_TESTS )
29
29
# These are the internal (simple) tests.
30
- set (MESSAGE_TESTS
31
- request_base_test
32
- request_test
33
- response_test
34
- response_incremental_parser_test
35
- )
30
+ set (MESSAGE_TESTS request_base_test request_test response_test
31
+ response_incremental_parser_test )
36
32
foreach ( test ${MESSAGE_TESTS} )
37
33
add_executable (cpp-netlib-http-${test} ${test} .cpp )
38
34
add_dependencies (cpp-netlib-http-${test}
@@ -85,10 +81,11 @@ if (CPP-NETLIB_BUILD_TESTS)
85
81
set_target_properties (cpp-netlib-http-client_test
86
82
PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR}/tests )
87
83
add_test (cpp-netlib-http-client_test
88
- ${CPP-NETLIB_BINARY_DIR}/tests/cpp-netlib-http-${test} )
84
+ ${CPP-NETLIB_BINARY_DIR}/tests/cpp-netlib-http-client_test )
89
85
90
86
# HTTP Server tests
91
- set (SERVER_TESTS server_simple_sessions_test server_dynamic_dispatcher_test server_test )
87
+ set (SERVER_TESTS server_simple_sessions_test server_dynamic_dispatcher_test
88
+ server_default_connection_manager_test server_test )
92
89
foreach (test ${SERVER_TESTS} )
93
90
add_executable (cpp-netlib-http-${test} ${test} .cpp )
94
91
add_dependencies (cpp-netlib-http-${test} cppnetlib-http-server )
Original file line number Diff line number Diff line change
1
+ // Copyright 2013 (c) Google, Inc.
2
+ // Copyright 2013 (c) Dean Michael Berris <dberris@google.com>
3
+ // Distributed under the Boost Software License, Version 1.0.
4
+ // (See accompanying file LICENSE_1_0.txt or copy at
5
+ // http://www.boost.org/LICENSE_1_0.txt)
6
+
7
+ #include < gtest/gtest.h>
8
+ #include < http/server/default_connection_manager.hpp>
9
+
10
+ namespace http = network::http;
11
+
12
+ namespace {
13
+
14
+ TEST (default_connection_manager_test, constructor_test) {
15
+ http::default_connection_manager manager;
16
+ (void )manager;
17
+ }
18
+
19
+ } // namespace
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ namespace net = network;
12
12
13
13
namespace {
14
14
15
- TEST (server_test, constructor ) {
15
+ TEST (server_test, default_constructor ) {
16
16
http::server server;
17
17
(void ) server;
18
18
}
You can’t perform that action at this time.
0 commit comments