@@ -463,7 +463,7 @@ TEST(connection_impl_set_message_received, callback_invoked_when_message_receive
463463
464464 auto message = std::make_shared<utility::string_t >();
465465
466- auto message_received_event = std::make_shared<pplx:: event>();
466+ auto message_received_event = std::make_shared<event>();
467467 connection->set_message_received_string ([message, message_received_event](const utility::string_t &m){
468468 if (m == _XPLATSTR (" \" Test\" " ))
469469 {
@@ -505,7 +505,7 @@ TEST(connection_impl_set_message_received, exception_from_callback_caught_and_lo
505505 std::shared_ptr<log_writer> writer (std::make_shared<memory_log_writer>());
506506 auto connection = create_connection (websocket_client, writer, trace_level::errors);
507507
508- auto message_received_event = std::make_shared<pplx:: event>();
508+ auto message_received_event = std::make_shared<event>();
509509 connection->set_message_received_string ([message_received_event](const utility::string_t &m){
510510 if (m == _XPLATSTR (" \" throw\" " ))
511511 {
@@ -551,7 +551,7 @@ TEST(connection_impl_set_message_received, non_std_exception_from_callback_caugh
551551 std::shared_ptr<log_writer> writer (std::make_shared<memory_log_writer>());
552552 auto connection = create_connection (websocket_client, writer, trace_level::errors);
553553
554- auto message_received_event = std::make_shared<pplx:: event>();
554+ auto message_received_event = std::make_shared<event>();
555555 connection->set_message_received_string ([message_received_event](const utility::string_t &m)
556556 {
557557 if (m == _XPLATSTR (" \" throw\" " ))
@@ -598,7 +598,7 @@ TEST(connection_impl_set_message_received, error_logged_for_malformed_payload)
598598 std::shared_ptr<log_writer> writer (std::make_shared<memory_log_writer>());
599599 auto connection = create_connection (websocket_client, writer, trace_level::errors);
600600
601- auto message_received_event = std::make_shared<pplx:: event>();
601+ auto message_received_event = std::make_shared<event>();
602602 connection->set_message_received_string ([message_received_event](const utility::string_t &)
603603 {
604604 // this is called only once because we have just one response with a message
@@ -638,7 +638,7 @@ TEST(connection_impl_set_message_received, unexpected_responses_logged)
638638 std::shared_ptr<log_writer> writer (std::make_shared<memory_log_writer>());
639639 auto connection = create_connection (websocket_client, writer, trace_level::info);
640640
641- auto message_received_event = std::make_shared<pplx:: event>();
641+ auto message_received_event = std::make_shared<event>();
642642 connection->set_message_received_string ([message_received_event](const utility::string_t &)
643643 {
644644 // this is called only once because we have just one response with a message
@@ -733,7 +733,7 @@ TEST(connection_impl_stop, stopping_disconnected_connection_is_no_op)
733733
734734TEST (connection_impl_stop, stopping_disconnecting_connection_returns_cancelled_task)
735735{
736- pplx:: event close_event;
736+ event close_event;
737737 auto writer = std::shared_ptr<log_writer>{std::make_shared<memory_log_writer>()};
738738
739739 auto websocket_client = create_test_websocket_client (
@@ -870,7 +870,7 @@ TEST(connection_impl_stop, dtor_stops_the_connection)
870870
871871TEST (connection_impl_stop, stop_cancels_ongoing_start_request)
872872{
873- auto disconnect_completed_event = std::make_shared<pplx:: event>();
873+ auto disconnect_completed_event = std::make_shared<event>();
874874
875875 auto websocket_client = create_test_websocket_client (
876876 /* receive function */ [disconnect_completed_event]()
@@ -1146,7 +1146,7 @@ TEST(connection_impl_reconnect, can_reconnect)
11461146
11471147 auto connection = create_connection (websocket_client);
11481148 connection->set_reconnect_delay (100 );
1149- auto reconnected_event = std::make_shared<pplx:: event>();
1149+ auto reconnected_event = std::make_shared<event>();
11501150 connection->set_reconnected ([reconnected_event](){ reconnected_event->set (); });
11511151 connection->start ();
11521152
@@ -1178,7 +1178,7 @@ TEST(connection_impl_reconnect, successful_reconnect_state_changes)
11781178 std::shared_ptr<log_writer> writer (std::make_shared<memory_log_writer>());
11791179 auto connection = create_connection (websocket_client, writer, trace_level::state_changes);
11801180 connection->set_reconnect_delay (100 );
1181- auto reconnected_event = std::make_shared<pplx:: event>();
1181+ auto reconnected_event = std::make_shared<event>();
11821182 connection->set_reconnected ([reconnected_event](){ reconnected_event->set (); });
11831183 connection->start ();
11841184
@@ -1244,7 +1244,7 @@ TEST(connection_impl_reconnect, connection_stopped_if_reconnecting_failed)
12441244 connection_impl::create (create_uri (), _XPLATSTR (" " ), trace_level::state_changes,
12451245 writer, std::move (web_request_factory), std::make_unique<test_transport_factory>(websocket_client));
12461246
1247- auto disconnected_event = std::make_shared<pplx:: event>();
1247+ auto disconnected_event = std::make_shared<event>();
12481248 connection->set_disconnected ([disconnected_event](){ disconnected_event->set (); });
12491249 connection->set_reconnect_delay (100 );
12501250 connection->start ();
@@ -1264,7 +1264,7 @@ TEST(connection_impl_reconnect, connection_stopped_if_reconnecting_failed)
12641264
12651265TEST (connection_impl_reconnect, reconnect_works_if_connection_dropped_during_after_init_and_before_start_successfully_completed)
12661266{
1267- auto connection_dropped_event = std::make_shared<pplx:: event>();
1267+ auto connection_dropped_event = std::make_shared<event>();
12681268
12691269 int call_number = -1 ;
12701270 auto websocket_client = create_test_websocket_client (
@@ -1291,7 +1291,7 @@ TEST(connection_impl_reconnect, reconnect_works_if_connection_dropped_during_aft
12911291 std::shared_ptr<log_writer> writer (std::make_shared<memory_log_writer>());
12921292 auto connection = create_connection (websocket_client, writer, trace_level::state_changes);
12931293 connection->set_reconnect_delay (100 );
1294- auto reconnected_event = std::make_shared<pplx:: event>();
1294+ auto reconnected_event = std::make_shared<event>();
12951295 connection->set_reconnected ([reconnected_event](){ reconnected_event->set (); });
12961296
12971297 connection->start ();
@@ -1308,7 +1308,7 @@ TEST(connection_impl_reconnect, reconnect_works_if_connection_dropped_during_aft
13081308
13091309TEST (connection_impl_reconnect, reconnect_cancelled_if_connection_dropped_during_start_and_start_failed)
13101310{
1311- auto connection_dropped_event = std::make_shared<pplx:: event>();
1311+ auto connection_dropped_event = std::make_shared<event>();
13121312
13131313 auto web_request_factory = std::make_unique<test_web_request_factory>([&connection_dropped_event](const web::uri& url)
13141314 {
@@ -1428,7 +1428,7 @@ TEST(connection_impl_reconnect, reconnect_cancelled_when_connection_being_stoppe
14281428 std::shared_ptr<log_writer> writer (std::make_shared<memory_log_writer>());
14291429 auto connection = create_connection (websocket_client, writer, trace_level::all);
14301430 connection->set_reconnect_delay (100 );
1431- pplx:: event reconnecting_event{};
1431+ event reconnecting_event{};
14321432 connection->set_reconnecting ([&reconnecting_event](){ reconnecting_event.set (); });
14331433
14341434 connection->start ().then ([&connection_started](){ connection_started = true ; });
@@ -1502,7 +1502,7 @@ TEST(connection_impl_reconnect, reconnect_cancelled_if_connection_goes_out_of_sc
15021502 {
15031503 auto connection = create_connection (websocket_client, writer, trace_level::state_changes);
15041504 connection->set_reconnect_delay (100 );
1505- pplx:: event reconnecting_event{};
1505+ event reconnecting_event{};
15061506 connection->set_reconnecting ([&reconnecting_event](){ reconnecting_event.set (); });
15071507
15081508 connection->start ().then ([&connection_started](){ connection_started = true ; });
@@ -1552,7 +1552,7 @@ TEST(connection_impl_reconnect, std_exception_for_reconnected_reconnecting_callb
15521552 auto connection = create_connection (websocket_client, writer, trace_level::errors);
15531553 connection->set_reconnect_delay (100 );
15541554 connection->set_reconnecting ([](){ throw std::runtime_error (" exception from reconnecting" ); });
1555- auto reconnected_event = std::make_shared<pplx:: event>();
1555+ auto reconnected_event = std::make_shared<event>();
15561556 connection->set_reconnected ([reconnected_event]()
15571557 {
15581558 reconnected_event->set ();
@@ -1599,7 +1599,7 @@ TEST(connection_impl_reconnect, exception_for_reconnected_reconnecting_callback_
15991599 auto connection = create_connection (websocket_client, writer, trace_level::errors);
16001600 connection->set_reconnect_delay (100 );
16011601 connection->set_reconnecting ([](){ throw 42 ; });
1602- auto reconnected_event = std::make_shared<pplx:: event>();
1602+ auto reconnected_event = std::make_shared<event>();
16031603 connection->set_reconnected ([reconnected_event]()
16041604 {
16051605 reconnected_event->set ();
@@ -1672,7 +1672,7 @@ TEST(connection_impl_reconnect, can_stop_connection_from_reconnecting_event)
16721672 connection_impl::create (create_uri (), _XPLATSTR (" " ), trace_level::state_changes,
16731673 writer, std::move (web_request_factory), std::make_unique<test_transport_factory>(websocket_client));
16741674
1675- auto stop_event = std::make_shared<pplx:: event>();
1675+ auto stop_event = std::make_shared<event>();
16761676 connection->set_reconnecting ([&connection, stop_event]()
16771677 {
16781678 connection->stop ()
@@ -1756,7 +1756,7 @@ TEST(connection_impl_reconnect, current_reconnect_cancelled_if_another_reconnect
17561756 }
17571757 });
17581758
1759- pplx:: event reconnected_event;
1759+ event reconnected_event;
17601760 connection->set_reconnected ([&reconnected_event]()
17611761 {
17621762 reconnected_event.set ();
0 commit comments