mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
implement startlisteningforincomingconnections
PiperOrigin-RevId: 540707703
This commit is contained in:
committed by
Copybara-Service
parent
839dd086fd
commit
5737b867ed
@@ -174,5 +174,15 @@ 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
|
||||
|
||||
Reference in New Issue
Block a user