@@ -87,7 +87,7 @@ TEST_FIXTURE(uri_address, auth_no_data, "Ignore:Linux", "89", "Ignore:Apple", "8
87
87
{
88
88
test_http_server::scoped_server scoped (m_uri);
89
89
http_client_config client_config;
90
- credentials cred (U (" some_user" ), U (" some_password" )); // WinHTTP requires non-empty password
90
+ web:: credentials cred (U (" some_user" ), U (" some_password" )); // WinHTTP requires non-empty password
91
91
client_config.set_credentials (cred);
92
92
http_client client (m_uri, client_config);
93
93
const method mtd = methods::POST;
@@ -126,7 +126,7 @@ TEST_FIXTURE(uri_address, proxy_auth_known_contentlength, "Ignore:Linux", "88",
126
126
{
127
127
test_http_server::scoped_server scoped (m_uri);
128
128
http_client_config client_config;
129
- credentials cred (U (" some_user" ), U (" some_password" )); // WinHTTP requires non-empty password
129
+ web:: credentials cred (U (" some_user" ), U (" some_password" )); // WinHTTP requires non-empty password
130
130
client_config.set_credentials (cred);
131
131
http_client client (m_uri, client_config);
132
132
const method mtd = methods::POST;
@@ -199,7 +199,7 @@ TEST_FIXTURE(uri_address, proxy_auth_unknown_contentlength, "Ignore:Linux", "88"
199
199
{
200
200
test_http_server::scoped_server scoped (m_uri);
201
201
http_client_config client_config;
202
- credentials cred (U (" some_user" ), U (" some_password" )); // WinHTTP requires non-empty password
202
+ web:: credentials cred (U (" some_user" ), U (" some_password" )); // WinHTTP requires non-empty password
203
203
client_config.set_credentials (cred);
204
204
http_client client (m_uri, client_config);
205
205
const method mtd = methods::POST;
@@ -271,7 +271,7 @@ TEST_FIXTURE(uri_address, error_after_valid_credentials, "Ignore:Linux", "89", "
271
271
web::http::uri uri (U (" http://localhost:34569/" ));
272
272
test_http_server::scoped_server scoped (uri);
273
273
http_client_config client_config;
274
- credentials cred (U (" some_user" ), U (" some_password" ));
274
+ web:: credentials cred (U (" some_user" ), U (" some_password" ));
275
275
client_config.set_credentials (cred);
276
276
http_client client (uri, client_config);
277
277
@@ -379,7 +379,7 @@ TEST_FIXTURE(server_properties, unsuccessful_auth_with_basic_cred, "Requires", "
379
379
load_parameters ();
380
380
381
381
http_client_config config;
382
- config.set_credentials (credentials (m_username, m_password));
382
+ config.set_credentials (web:: credentials (m_username, m_password));
383
383
384
384
http_client client (m_uri, config);
385
385
http_response response = client.request (methods::GET).get ();
@@ -391,7 +391,7 @@ TEST_FIXTURE(server_properties, basic_anonymous_auth_with_basic_cred, "Requires"
391
391
load_parameters ();
392
392
393
393
http_client_config config;
394
- config.set_credentials (credentials (m_username, m_password));
394
+ config.set_credentials (web:: credentials (m_username, m_password));
395
395
http_client client (m_uri, config);
396
396
http_request req (methods::GET);
397
397
req.headers ().add (U (" UserName" ), m_username);
@@ -405,7 +405,7 @@ TEST_FIXTURE(server_properties, none_auth_with_cred, "Requires", "Server;UserNam
405
405
load_parameters ();
406
406
407
407
http_client_config config;
408
- config.set_credentials (credentials (m_username, m_password));
408
+ config.set_credentials (web:: credentials (m_username, m_password));
409
409
http_client client (m_uri, config);
410
410
http_response response = client.request (methods::GET).get ();
411
411
VERIFY_ARE_EQUAL (status_codes::Forbidden, response.status_code ());
@@ -417,7 +417,7 @@ TEST_FIXTURE(server_properties, successful_auth_with_domain_cred, "Requires", "S
417
417
load_parameters ();
418
418
419
419
http_client_config config;
420
- config.set_credentials (credentials (m_username, m_password));
420
+ config.set_credentials (web:: credentials (m_username, m_password));
421
421
http_client client (m_uri, config);
422
422
http_request req (methods::GET);
423
423
req.headers ().add (U (" UserName" ), m_username);
@@ -432,7 +432,7 @@ TEST_FIXTURE(server_properties, failed_authentication_resend_request_error, "Req
432
432
load_parameters ();
433
433
434
434
http_client_config config;
435
- config.set_credentials (credentials (m_username, m_password));
435
+ config.set_credentials (web:: credentials (m_username, m_password));
436
436
http_client client (m_uri, config);
437
437
438
438
const size_t rawDataSize = 8 ;
@@ -477,7 +477,7 @@ TEST_FIXTURE(server_properties, set_user_options, "Requires", "Server;UserName;P
477
477
load_parameters ();
478
478
479
479
http_client_config config;
480
- config.set_credentials (credentials (m_username, m_password));
480
+ config.set_credentials (web:: credentials (m_username, m_password));
481
481
482
482
config.set_nativehandle_options ([&](native_handle handle)->void {
483
483
DWORD policy = WINHTTP_AUTOLOGON_SECURITY_LEVEL_LOW;
@@ -519,7 +519,7 @@ TEST_FIXTURE(uri_address, auth_producer_comsumer_buffer)
519
519
VERIFY_IS_FALSE (config.buffer_request ());
520
520
config.set_buffer_request (true );
521
521
VERIFY_IS_TRUE (config.buffer_request ());
522
- config.set_credentials (credentials (U (" USERNAME" ), U (" PASSWORD" )));
522
+ config.set_credentials (web:: credentials (U (" USERNAME" ), U (" PASSWORD" )));
523
523
524
524
http_client client (m_uri, config);
525
525
@@ -583,7 +583,7 @@ TEST_FIXTURE(uri_address, auth_producer_comsumer_buffer_fail)
583
583
584
584
http_client_config config;
585
585
config.set_buffer_request (true );
586
- config.set_credentials (credentials (U (" USERNAME" ), U (" PASSWORD" )));
586
+ config.set_credentials (web:: credentials (U (" USERNAME" ), U (" PASSWORD" )));
587
587
588
588
http_client client (m_uri, config);
589
589
@@ -634,7 +634,7 @@ TEST_FIXTURE(uri_address, failed_authentication_attempt, "Ignore:Linux", "89", "
634
634
handle_timeout ([]
635
635
{
636
636
http_client_config config;
637
- credentials cred (U (" user" ), U (" schmuser" ));
637
+ web:: credentials cred (U (" user" ), U (" schmuser" ));
638
638
config.set_credentials (cred);
639
639
http_client client (U (" https://apis.live.net" ), config);
640
640
http_response response = client.request (methods::GET, U (" V5.0/me/skydrive/files" )).get ();
0 commit comments