Revert incoming connections listener changes for internal breakages.

PiperOrigin-RevId: 542010849
This commit is contained in:
Anay Wadhera
2023-06-20 12:16:10 -07:00
committed by Copybara-Service
parent b6a8802cb9
commit 1973b09849
39 changed files with 25 additions and 988 deletions
@@ -174,15 +174,5 @@ void SimulationUser::RejectConnection(CountDownLatch* latch) {
EXPECT_TRUE(mgr_.RejectConnection(&client_, discovered_.endpoint_id).Ok());
}
void SimulationUser::StartListeningForIncomingConnections(
CountDownLatch* latch, absl::string_view service_id,
const v3::ConnectionListeningOptions& options, Status expected_status) {
auto result = mgr_.StartListeningForIncomingConnections(
&client_, service_id, /*listener=*/{}, options);
latch->CountDown();
NEARBY_LOGS(INFO) << "status: " << result.first.ToString();
EXPECT_EQ(expected_status, result.first);
}
} // namespace connections
} // namespace nearby