Skip to content

Commit e4aa755

Browse files
committed
Relacing some tabs that snuck in with spaces.
1 parent 7609944 commit e4aa755

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed

Release/include/cpprest/ws_msg.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ class websocket_outgoing_message
148148

149149
pplx::task_completion_event<void> m_body_sent;
150150
concurrency::streams::streambuf<uint8_t> m_body;
151-
websocket_message_type m_msg_type;
151+
websocket_message_type m_msg_type;
152152
size_t m_length;
153153

154154
void signal_body_sent() const
@@ -163,12 +163,12 @@ class websocket_outgoing_message
163163

164164
const pplx::task_completion_event<void> & body_sent() const { return m_body_sent; }
165165

166-
void set_message(const concurrency::streams::container_buffer<std::string> &buffer)
167-
{
166+
void set_message(const concurrency::streams::container_buffer<std::string> &buffer)
167+
{
168168
m_msg_type = websocket_message_type::text_message;
169169
m_length = static_cast<size_t>(buffer.size());
170170
m_body = buffer;
171-
}
171+
}
172172

173173
void set_message(const concurrency::streams::istream &istream, size_t len, websocket_message_type msg_type)
174174
{
@@ -235,7 +235,7 @@ class websocket_incoming_message
235235
// Store message body in a container buffer backed by a string.
236236
// Allows for optimization in the string message cases.
237237
concurrency::streams::container_buffer<std::string> m_body;
238-
websocket_message_type m_msg_type;
238+
websocket_message_type m_msg_type;
239239
};
240240

241241
}}}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ TEST(ssl_test)
9494

9595
auto receive_task = client.receive().then([body_str](websocket_incoming_message ret_msg)
9696
{
97-
VERIFY_ARE_EQUAL(ret_msg.length(), body_str.length());
97+
VERIFY_ARE_EQUAL(ret_msg.length(), body_str.length());
9898
auto ret_str = ret_msg.extract_string().get();
9999

100100
VERIFY_ARE_EQUAL(body_str.compare(ret_str), 0);

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ TEST_FIXTURE(uri_address, move_operations)
124124

125125
auto t = client2.receive().then([&](websocket_incoming_message ret_msg)
126126
{
127-
VERIFY_ARE_EQUAL(ret_msg.length(), body.length());
127+
VERIFY_ARE_EQUAL(ret_msg.length(), body.length());
128128
auto ret_str = ret_msg.extract_string().get();
129129

130130
VERIFY_ARE_EQUAL(body.compare(ret_str), 0);
@@ -154,7 +154,7 @@ TEST_FIXTURE(uri_address, move_operations)
154154
server.send_msg(rmsg1);
155155
auto t1 = client.receive().then([&](websocket_incoming_message ret_msg)
156156
{
157-
VERIFY_ARE_EQUAL(ret_msg.length(), body.length());
157+
VERIFY_ARE_EQUAL(ret_msg.length(), body.length());
158158
auto ret_str = ret_msg.extract_string().get();
159159

160160
VERIFY_ARE_EQUAL(body.compare(ret_str), 0);

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

Lines changed: 10 additions & 10 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.
@@ -40,10 +40,10 @@ namespace tests { namespace functional { namespace websocket { namespace client
4040
SUITE(receive_msg_tests)
4141
{
4242

43-
pplx::task<void> receive_text_msg_helper(websocket_client& client,
44-
test_websocket_server& server,
43+
pplx::task<void> receive_text_msg_helper(websocket_client& client,
44+
test_websocket_server& server,
4545
web::uri uri,
46-
const std::string& body_str,
46+
const std::string& body_str,
4747
bool connect_client = true)
4848
{
4949
std::vector<unsigned char> body(body_str.begin(), body_str.end());
@@ -91,7 +91,7 @@ pplx::task<void> receive_msg_stream_helper(websocket_client& client,
9191
else if (type == test_websocket_message_type::WEB_SOCKET_UTF8_MESSAGE_TYPE)
9292
VERIFY_ARE_EQUAL(ret_msg.messge_type(), websocket_message_type::text_message);
9393
});
94-
94+
9595
test_websocket_msg msg;
9696
msg.set_data(std::move(body));
9797
msg.set_msg_type(type);
@@ -214,13 +214,13 @@ TEST_FIXTURE(uri_address, receive_after_server_send)
214214
{
215215
std::string body_str("hello");
216216
std::vector<unsigned char> body(body_str.begin(), body_str.end());
217-
217+
218218
test_websocket_server server;
219219

220220
websocket_client client;
221221

222222
client.connect(m_uri).wait();
223-
223+
224224
test_websocket_msg msg;
225225
msg.set_data(std::move(body));
226226
msg.set_msg_type(test_websocket_message_type::WEB_SOCKET_UTF8_MESSAGE_TYPE);
@@ -252,13 +252,13 @@ TEST_FIXTURE(uri_address, receive_before_connect)
252252

253253
auto t = client.receive().then([body_str](websocket_incoming_message ret_msg)
254254
{
255-
VERIFY_ARE_EQUAL(ret_msg.length(), body_str.length());
255+
VERIFY_ARE_EQUAL(ret_msg.length(), body_str.length());
256256
auto ret_str = ret_msg.extract_string().get();
257257

258258
VERIFY_ARE_EQUAL(body_str.compare(ret_str), 0);
259259
VERIFY_ARE_EQUAL(ret_msg.messge_type(), websocket_message_type::text_message);
260260
});
261-
261+
262262
// Connect after the client is waiting on a receive task.
263263
client.connect(m_uri).wait();
264264

0 commit comments

Comments
 (0)