Rename sendEvent
There are currently 3 function prototypes that hold the name
"sendEvent". This makes them hard to search for, and even though they
take different arguments, and are attached to different classes, they're
still difficult to trace.
Rename two of the classes.
Tested: Code compiles. Rename only.
Change-Id: I5df9c690ba0ca8ebe19c73fc0848e9c3ef4d52f7
Signed-off-by: Ed Tanous <etanous@nvidia.com>
diff --git a/test/http/server_sent_event_test.cpp b/test/http/server_sent_event_test.cpp
index 13ae7f1..bf5cee3 100644
--- a/test/http/server_sent_event_test.cpp
+++ b/test/http/server_sent_event_test.cpp
@@ -65,7 +65,7 @@
}
// Send one event
{
- conn->sendEvent("TestEventId", "TestEventContent");
+ conn->sendSseEvent("TestEventId", "TestEventContent");
std::string_view expected = "id: TestEventId\n"
"data: TestEventContent\n"
"\n";
@@ -85,7 +85,7 @@
}
// Send second event
{
- conn->sendEvent("TestEventId2", "TestEvent\nContent2");
+ conn->sendSseEvent("TestEventId2", "TestEvent\nContent2");
constexpr std::string_view expected =
"id: TestEventId2\n"
"data: TestEvent\n"