aboutsummaryrefslogtreecommitdiff
path: root/socket_test.cpp
diff options
context:
space:
mode:
authorShaju Mathew <shaju@google.com>2022-12-31 19:36:54 -0800
committerShaju Mathew <shaju@google.com>2023-01-11 16:29:16 -0800
commit705fa1c8c5d41be8b29e88d4b7196d4c3ff53f9d (patch)
treebd12dabe6c44b8671e7bb819064dfb840f2c5f91 /socket_test.cpp
parent4c26a2b4d6ececb2b93ae3e7e2837a687c372e78 (diff)
downloadadb-705fa1c8c5d41be8b29e88d4b7196d4c3ff53f9d.tar.gz
Replacing spurious naming, and residual tech debt.
Originally main and looper threads were synonymous. After refactor to allow any thread (or multiple threads) to invoke Loop() (for unit test purposes), there remained residual technical debt - which this (first of several CLs) serves to address. Bug: 251596307, 264597082 Test: Build + cursory test(adb_test + adbd_test) Change-Id: Ia654d68db6598f3df55c14984a980d602158ac5b Signed-off-by: Shaju Mathew <shaju@google.com>
Diffstat (limited to 'socket_test.cpp')
-rw-r--r--socket_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/socket_test.cpp b/socket_test.cpp
index 5a95fa35..adac7d4f 100644
--- a/socket_test.cpp
+++ b/socket_test.cpp
@@ -110,7 +110,7 @@ struct CloseWithPacketArg {
};
static void CreateCloser(CloseWithPacketArg* arg) {
- fdevent_run_on_main_thread([arg]() {
+ fdevent_run_on_looper([arg]() {
asocket* s = create_local_socket(std::move(arg->socket_fd));
ASSERT_TRUE(s != nullptr);
arg->bytes_written = 0;
@@ -304,7 +304,7 @@ TEST_F(LocalSocketTest, close_socket_in_CLOSE_WAIT_state) {
PrepareThread();
- fdevent_run_on_main_thread([accept_fd]() {
+ fdevent_run_on_looper([accept_fd]() {
asocket* s = create_local_socket(unique_fd(accept_fd));
ASSERT_TRUE(s != nullptr);
});