Skip to content

Commit f19c099

Browse files
committed
Fixing missing float.h include and paran.
1 parent ddae2ca commit f19c099

File tree

3 files changed

+19
-17
lines changed

3 files changed

+19
-17
lines changed

Release/tests/functional/http/client/authentication_tests.cpp

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/***
22
* ==++==
33
*
4-
* Copyright (c) Microsoft Corporation. All rights reserved.
4+
* Copyright (c) Microsoft Corporation. All rights reserved.
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.
77
* You may obtain a copy of the License at
88
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
9+
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,
1212
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -37,7 +37,7 @@
3737
#endif
3838
#endif
3939

40-
using namespace web;
40+
using namespace web;
4141
using namespace utility;
4242
using namespace concurrency;
4343
using namespace web::http;
@@ -76,7 +76,7 @@ TEST_FIXTURE(uri_address, auth_no_data, "Ignore:Linux", "89", "Ignore:Apple", "8
7676
headers[U("WWW-Authenticate")] = U("Basic realm = \"WallyWorld\"");
7777

7878
// unauthorized
79-
p_request->reply(status_codes::Unauthorized, U("Authentication Failed"), headers);
79+
p_request->reply(status_codes::Unauthorized, U("Authentication Failed"), headers);
8080

8181
}).then([&scoped, replyFunc]()
8282
{
@@ -118,7 +118,7 @@ TEST_FIXTURE(uri_address, proxy_auth_known_contentlength, "Ignore:Linux", "88",
118118
headers[U("WWW-Authenticate")] = U("Basic realm = \"WallyWorld\"");
119119

120120
// unauthorized
121-
p_request->reply(status_codes::Unauthorized, U("Authentication Failed"), headers);
121+
p_request->reply(status_codes::Unauthorized, U("Authentication Failed"), headers);
122122

123123
}).then([&scoped, replyFunc]()
124124
{
@@ -153,7 +153,7 @@ TEST_FIXTURE(uri_address, proxy_auth_noseek, "Ignore:Linux", "88", "Ignore:Apple
153153
headers[U("WWW-Authenticate")] = U("Basic realm = \"WallyWorld\"");
154154

155155
// unauthorized
156-
p_request->reply(status_codes::Unauthorized, U("Authentication Failed"), headers);
156+
p_request->reply(status_codes::Unauthorized, U("Authentication Failed"), headers);
157157

158158
});
159159

@@ -194,7 +194,7 @@ TEST_FIXTURE(uri_address, proxy_auth_unknown_contentlength, "Ignore:Linux", "88"
194194
headers[U("WWW-Authenticate")] = U("Basic realm = \"WallyWorld\"");
195195

196196
// unauthorized
197-
p_request->reply(status_codes::Unauthorized, U("Authentication Failed"), headers);
197+
p_request->reply(status_codes::Unauthorized, U("Authentication Failed"), headers);
198198

199199
}).then([&scoped, replyFunc]()
200200
{
@@ -218,7 +218,7 @@ TEST_FIXTURE(uri_address, empty_username_password)
218218
// Auth header
219219
headers[U("WWW-Authenticate")] = U("Basic realm = \"myRealm\"");
220220
// unauthorized
221-
p_request->reply(status_codes::Unauthorized, U("Authentication Failed"), headers, "a" );
221+
p_request->reply(status_codes::Unauthorized, U("Authentication Failed"), headers, "a" );
222222
});
223223

224224
http_response response = client.request(methods::GET).get();
@@ -249,7 +249,7 @@ TEST_FIXTURE(uri_address, error_after_valid_credentials, "Ignore:Linux", "89", "
249249
headers[U("WWW-Authenticate")] = U("Basic realm = \"WallyWorld\"");
250250
headers[U("h1")] = U("data2");
251251
// still unauthorized after the user has resent the request with the credentials
252-
p_request->reply(status_codes::Unauthorized, U("Authentication Failed"), headers, "def" );
252+
p_request->reply(status_codes::Unauthorized, U("Authentication Failed"), headers, "def" );
253253
};
254254

255255
scoped.server()->next_request().then([&](test_request *p_request)
@@ -259,7 +259,7 @@ TEST_FIXTURE(uri_address, error_after_valid_credentials, "Ignore:Linux", "89", "
259259
// Auth header
260260
headers[U("WWW-Authenticate")] = U("Basic realm = \"myRealm\"");
261261
// unauthorized
262-
p_request->reply(status_codes::Unauthorized, U("Authentication Failed"), headers, "abc" );
262+
p_request->reply(status_codes::Unauthorized, U("Authentication Failed"), headers, "abc" );
263263
}).then([&scoped, &replyFunc]()
264264
{
265265
// Client resent the request
@@ -348,7 +348,7 @@ TEST_FIXTURE(server_properties, unsuccessful_auth_with_basic_cred, "Requires", "
348348

349349
http_client_config config;
350350
config.set_credentials(credentials(m_username, m_password));
351-
351+
352352
http_client client(m_uri, config);
353353
http_response response = client.request(methods::GET).get();
354354
VERIFY_ARE_EQUAL(status_codes::Unauthorized, response.status_code());
@@ -423,7 +423,7 @@ TEST_FIXTURE(uri_address, set_user_options_winrt)
423423
test_http_server::scoped_server scoped(m_uri);
424424
scoped.server()->next_request().then([](test_request *p_request)
425425
{
426-
p_request->reply(status_codes::OK);
426+
p_request->reply(status_codes::OK);
427427
});
428428

429429
http_client_config config;
@@ -451,7 +451,7 @@ TEST_FIXTURE(server_properties, set_user_options, "Requires", "Server;UserName;P
451451
DWORD policy = WINHTTP_AUTOLOGON_SECURITY_LEVEL_LOW;
452452
if (!WinHttpSetOption(handle,
453453
WINHTTP_OPTION_AUTOLOGON_POLICY,
454-
&policy,
454+
&policy,
455455
sizeof(policy)))
456456
{
457457
throw std::runtime_error("The Test Error");
@@ -595,7 +595,7 @@ TEST_FIXTURE(uri_address, set_user_options_exceptions)
595595
VERIFY_THROWS(client.request(methods::GET).get(), std::runtime_error);
596596
}
597597
#endif // _MS_WINDOWS
598-
#pragma endregion
598+
#pragma endregion
599599

600600
// Fix for 522831 AV after failed authentication attempt
601601
TEST_FIXTURE(uri_address, failed_authentication_attempt, "Ignore:Linux", "89", "Ignore:Apple", "89")

Release/tests/functional/streams/istream_tests.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/***
22
* ==++==
33
*
4-
* Copyright (c) Microsoft Corporation. All rights reserved.
4+
* Copyright (c) Microsoft Corporation. All rights reserved.
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.
77
* You may obtain a copy of the License at
88
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
9+
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,
1212
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -23,6 +23,8 @@
2323
#include "unittestpp.h"
2424
#include "stdafx.h"
2525

26+
#include <float.h>
27+
2628
#if defined(__cplusplus_winrt)
2729
using namespace Windows::Storage;
2830
#endif

Release/tests/functional/websockets/client/authentication_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ TEST(ssl_test)
125125
}
126126
catch (const websocket_exception &e)
127127
{
128-
if (is_timeout(e.what())
128+
if (is_timeout(e.what()))
129129
{
130130
// Since this test depends on an outside server sometimes it sporadically can fail due to timeouts
131131
// especially on our build machines.

0 commit comments

Comments
 (0)