File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2727#include < thread>
2828#include < vector>
2929
30+ #include " ../common/test_common.h"
31+
3032namespace livekit ::test {
3133
3234using namespace std ::chrono_literals;
@@ -88,18 +90,6 @@ std::string generateRandomPayload(size_t size) {
8890 return result.substr (0 , size);
8991}
9092
91- // Wait for a remote participant to appear
92- bool waitForParticipant (Room* room, const std::string& identity, std::chrono::milliseconds timeout) {
93- auto start = std::chrono::steady_clock::now ();
94- while (std::chrono::steady_clock::now () - start < timeout) {
95- if (room->remoteParticipant (identity) != nullptr ) {
96- return true ;
97- }
98- std::this_thread::sleep_for (100ms);
99- }
100- return false ;
101- }
102-
10393class RpcIntegrationTest : public ::testing::Test {
10494protected:
10595 void SetUp () override {
You can’t perform that action at this time.
0 commit comments