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

request_value_semantics test failed#238

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
deanberris merged 4 commits intocpp-netlib:masterfromnico159:master
May 23, 2013
Merged
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
Add unit test for http::request::swap
  • Loading branch information
@nico159
nico159 committedMay 18, 2013
commitdddc187d5dd252f7b1dae24aec79cffc17aebe51
15 changes: 15 additions & 0 deletionshttp/test/request_test.cpp
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -19,6 +19,21 @@ TEST(message_test, request_construction) {
http::request other(request);
}

TEST(message_test, request_swap) {
network::uri tmp_uri;
network::uri request_uri("http://www.google.com/");
network::uri other_uri("http://www.google.it/");
http::request request(request_uri);
http::request other(other_uri);

request.swap(other);

request.get_uri(tmp_uri);
ASSERT_EQ(tmp_uri, other_uri);
other.get_uri(tmp_uri);
ASSERT_EQ(tmp_uri, request_uri);
}

TEST(message_test, request_value_semantics) {
// First let's default construct a request.
http::request original;
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp