Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(129)

Unified Diff: webrtc/tools/network_tester/test_controller.cc

Issue 2787863002: Add network tester client [android] (Closed)
Patch Set: Rebased Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« webrtc/tools/network_tester/jni.cpp ('K') | « webrtc/tools/network_tester/jni.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/tools/network_tester/test_controller.cc
diff --git a/webrtc/tools/network_tester/test_controller.cc b/webrtc/tools/network_tester/test_controller.cc
index dba589fbb59bc08543021cd39f31304e0af000c6..7bf7d9a51f081ef15d520ba6f69ad12d85c9dd26 100644
--- a/webrtc/tools/network_tester/test_controller.cc
+++ b/webrtc/tools/network_tester/test_controller.cc
@@ -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) {
@@ -71,6 +72,8 @@ void TestController::OnReadPacket(rtc::AsyncPacketSocket* socket,
break;
}
case NetworkTesterPacket::TEST_START: {
+ local_test_done_ = false;
+ remote_test_done_ = false;
packet_sender_.reset(new PacketSender(this, config_file_path_));
packet_sender_->StartSending();
break;
« webrtc/tools/network_tester/jni.cpp ('K') | « webrtc/tools/network_tester/jni.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698