mirror of
https://github.com/monero-project/monero.git
synced 2024-12-23 12:09:54 +00:00
Fixed HTTP auth tests for gcc 4.9
This commit is contained in:
parent
049b7e9a93
commit
522ab79e9c
1 changed files with 4 additions and 4 deletions
|
@ -241,7 +241,7 @@ TEST(HTTP_Auth, MD5)
|
||||||
epee::net_utils::http::http_auth::login user{"foo", "bar"};
|
epee::net_utils::http::http_auth::login user{"foo", "bar"};
|
||||||
epee::net_utils::http::http_auth auth{user};
|
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));
|
ASSERT_TRUE(bool(response));
|
||||||
EXPECT_TRUE(is_unauthorized(*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::login user{"foo", "bar"};
|
||||||
epee::net_utils::http::http_auth auth{user};
|
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));
|
ASSERT_TRUE(bool(response));
|
||||||
EXPECT_TRUE(is_unauthorized(*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::login user{"foo", "bar"};
|
||||||
epee::net_utils::http::http_auth auth{user};
|
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));
|
ASSERT_TRUE(bool(response));
|
||||||
EXPECT_TRUE(is_unauthorized(*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::login user{"foo", "bar"};
|
||||||
epee::net_utils::http::http_auth auth{user};
|
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));
|
ASSERT_TRUE(bool(response));
|
||||||
EXPECT_TRUE(is_unauthorized(*response));
|
EXPECT_TRUE(is_unauthorized(*response));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue