Add network tester client [android] to be able to test mobile networks in terms of packet size and sending rates.
BUG=webrtc:7426 Review-Url: https://codereview.webrtc.org/2787863002 Cr-Commit-Position: refs/heads/master@{#17789}
This commit is contained in:
@ -16,7 +16,8 @@ TestController::TestController(int min_port,
|
||||
int max_port,
|
||||
const std::string& config_file_path,
|
||||
const std::string& log_file_path)
|
||||
: config_file_path_(config_file_path),
|
||||
: socket_factory_(rtc::ThreadManager::Instance()->WrapCurrentThread()),
|
||||
config_file_path_(config_file_path),
|
||||
packet_logger_(log_file_path),
|
||||
local_test_done_(false),
|
||||
remote_test_done_(false) {
|
||||
@ -101,6 +102,9 @@ void TestController::OnReadPacket(rtc::AsyncPacketSocket* socket,
|
||||
case NetworkTesterPacket::TEST_START: {
|
||||
packet_sender_.reset(new PacketSender(this, config_file_path_));
|
||||
packet_sender_->StartSending();
|
||||
rtc::CritScope scoped_lock(&local_test_done_lock_);
|
||||
local_test_done_ = false;
|
||||
remote_test_done_ = false;
|
||||
break;
|
||||
}
|
||||
case NetworkTesterPacket::TEST_DATA: {
|
||||
|
||||
Reference in New Issue
Block a user