diff options
Diffstat (limited to 'third_party/libwebrtc/rtc_tools/network_tester/test_controller.h')
-rw-r--r-- | third_party/libwebrtc/rtc_tools/network_tester/test_controller.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/third_party/libwebrtc/rtc_tools/network_tester/test_controller.h b/third_party/libwebrtc/rtc_tools/network_tester/test_controller.h index 3638c75af1..423eb08d0c 100644 --- a/third_party/libwebrtc/rtc_tools/network_tester/test_controller.h +++ b/third_party/libwebrtc/rtc_tools/network_tester/test_controller.h @@ -22,11 +22,11 @@ #include "api/sequence_checker.h" #include "p2p/base/basic_packet_socket_factory.h" #include "rtc_base/async_packet_socket.h" +#include "rtc_base/network/received_packet.h" #include "rtc_base/socket_address.h" #include "rtc_base/socket_server.h" #include "rtc_base/synchronization/mutex.h" #include "rtc_base/system/no_unique_address.h" -#include "rtc_base/third_party/sigslot/sigslot.h" #include "rtc_base/thread.h" #include "rtc_base/thread_annotations.h" #include "rtc_tools/network_tester/packet_logger.h" @@ -43,13 +43,13 @@ namespace webrtc { constexpr size_t kEthernetMtu = 1500; -class TestController : public sigslot::has_slots<> { +class TestController { public: TestController(int min_port, int max_port, const std::string& config_file_path, const std::string& log_file_path); - ~TestController() override; + ~TestController(); TestController(const TestController&) = delete; TestController& operator=(const TestController&) = delete; @@ -65,10 +65,7 @@ class TestController : public sigslot::has_slots<> { private: void OnReadPacket(rtc::AsyncPacketSocket* socket, - const char* data, - size_t len, - const rtc::SocketAddress& remote_addr, - const int64_t& packet_time_us); + const rtc::ReceivedPacket& received_packet); RTC_NO_UNIQUE_ADDRESS SequenceChecker test_controller_thread_checker_; std::unique_ptr<rtc::SocketServer> socket_server_; std::unique_ptr<rtc::Thread> packet_sender_thread_; |