diff options
author | btolsch <btolsch@chromium.org> | 2020-04-15 23:26:36 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-04-16 19:09:57 +0000 |
commit | c117a70b3913598e3dfe37b2668a64c0eb5634c7 (patch) | |
tree | 305b08de18d1c48743b478b04481a8e4464a4cf6 /cast/sender/cast_platform_client_unittest.cc | |
parent | f4308e08dc82019521f565bbd201233139c6c7f0 (diff) | |
download | openscreen-c117a70b3913598e3dfe37b2668a64c0eb5634c7.tar.gz |
Rename CastSocket::SendMessage to Send
This change renames both CastSocket::SendMessage and the wrapper
VirtualConnectionRouter::SendMessage to Send. On Windows, translation
units compiled with windows.h will accidentally rename this to
SendMessageA or SendMessageW due Microsoft's macro-ing. This means that
libcast code compiled without windows.h won't link with anything
compiled with windows.h.
Bug: 1050913
Change-Id: I24faa8895a921c4a17a7dafc442a0cbcc980de8e
Reviewed-on: https://chromium-review.googlesource.com/c/openscreen/+/2152217
Reviewed-by: Ryan Keane <rwkeane@google.com>
Commit-Queue: Brandon Tolsch <btolsch@chromium.org>
Diffstat (limited to 'cast/sender/cast_platform_client_unittest.cc')
-rw-r--r-- | cast/sender/cast_platform_client_unittest.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cast/sender/cast_platform_client_unittest.cc b/cast/sender/cast_platform_client_unittest.cc index 44e99660..eaaf5c6e 100644 --- a/cast/sender/cast_platform_client_unittest.cc +++ b/cast/sender/cast_platform_client_unittest.cc @@ -74,12 +74,12 @@ TEST_F(CastPlatformClientTest, AppAvailability) { CastMessage availability_response = CreateAppAvailableResponseChecked(request_id, sender_id, "AAA"); - EXPECT_TRUE(peer_socket().SendMessage(availability_response).ok()); + EXPECT_TRUE(peer_socket().Send(availability_response).ok()); EXPECT_TRUE(ran); // NOTE: Callback should only fire once, so it should not fire again here. ran = false; - EXPECT_TRUE(peer_socket().SendMessage(availability_response).ok()); + EXPECT_TRUE(peer_socket().Send(availability_response).ok()); EXPECT_FALSE(ran); } @@ -103,7 +103,7 @@ TEST_F(CastPlatformClientTest, CancelRequest) { CastMessage availability_response = CreateAppAvailableResponseChecked(request_id, sender_id, "AAA"); - EXPECT_TRUE(peer_socket().SendMessage(availability_response).ok()); + EXPECT_TRUE(peer_socket().Send(availability_response).ok()); } } // namespace cast |