aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2016-12-21 21:51:46 +0200
committerRiccardo Spagni <ric@spagni.net>2016-12-21 21:51:46 +0200
commita5d0af95b52c6a0cd2c7fa75f1e0b1db5da1a9e5 (patch)
treed92f240e812ed61fcb9c3b15c336ec8a85064936
parentMerge pull request #1484 (diff)
parentFixed HTTP auth tests for gcc 4.9 (diff)
downloadmonero-a5d0af95b52c6a0cd2c7fa75f1e0b1db5da1a9e5.tar.xz
Merge pull request #1486
522ab79e Fixed HTTP auth tests for gcc 4.9 (Lee Clagett)
-rw-r--r--tests/unit_tests/http_auth.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit_tests/http_auth.cpp b/tests/unit_tests/http_auth.cpp
index e37ded34a..7158850b6 100644
--- a/tests/unit_tests/http_auth.cpp
+++ b/tests/unit_tests/http_auth.cpp
@@ -241,7 +241,7 @@ TEST(HTTP_Auth, MD5)
epee::net_utils::http::http_auth::login user{"foo", "bar"};
epee::net_utils::http::http_auth auth{user};
- const auto response = auth.get_response(make_request({}));
+ const auto response = auth.get_response(make_request(fields{}));
ASSERT_TRUE(bool(response));
EXPECT_TRUE(is_unauthorized(*response));
@@ -290,7 +290,7 @@ TEST(HTTP_Auth, MD5_sess)
epee::net_utils::http::http_auth::login user{"foo", "bar"};
epee::net_utils::http::http_auth auth{user};
- const auto response = auth.get_response(make_request({}));
+ const auto response = auth.get_response(make_request(fields{}));
ASSERT_TRUE(bool(response));
EXPECT_TRUE(is_unauthorized(*response));
@@ -342,7 +342,7 @@ TEST(HTTP_Auth, MD5_auth)
epee::net_utils::http::http_auth::login user{"foo", "bar"};
epee::net_utils::http::http_auth auth{user};
- const auto response = auth.get_response(make_request({}));
+ const auto response = auth.get_response(make_request(fields{}));
ASSERT_TRUE(bool(response));
EXPECT_TRUE(is_unauthorized(*response));
@@ -410,7 +410,7 @@ TEST(HTTP_Auth, MD5_sess_auth)
epee::net_utils::http::http_auth::login user{"foo", "bar"};
epee::net_utils::http::http_auth auth{user};
- const auto response = auth.get_response(make_request({}));
+ const auto response = auth.get_response(make_request(fields{}));
ASSERT_TRUE(bool(response));
EXPECT_TRUE(is_unauthorized(*response));