Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5f6ab56

Browse files
committed
Added a unit test for the HTTP client response.
1 parent4c9fbda commit5f6ab56

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

‎libs/network/test/http/client/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
set(
88
TESTS
99
request_test
10+
response_test
1011
)
1112

1213
foreach(test${TESTS})

‎libs/network/test/http/client/request_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ TEST(http_client_request, construct_from_uri) {
1616
ASSERT_NO_THROW(client_request("http://cpp-netlib.org/"));
1717
}
1818

19-
TEST(http_client_request,construct_from_invalid_uri) {
19+
TEST(http_client_request,DISABLED_construct_from_invalid_uri) {
2020
ASSERT_THROW(client_request("I am not a valid URI"), std::exception);
2121
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Copyright 2016 Glyn Matthews.
2+
// Distributed under the Boost Software License, Version 1.0.
3+
// (See accompanying file LICENSE_1_0.txt or copy at
4+
// http://www.boost.org/LICENSE_1_0.txt)
5+
6+
7+
#include<gtest/gtest.h>
8+
// #include <boost/network/protocol/http/client/response.hpp>
9+
#include<boost/network/protocol/http/client.hpp>
10+
11+
12+
using client_response = boost::network::http::client::response;
13+
14+
15+
TEST(http_client_response, construct) {
16+
ASSERT_NO_THROW(client_response());
17+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp