DescriptionUse a single Python Forwarder instance for each base test runner instance.
This is achieved by having BaseTestRunner instantiate a single Forwarder
instance and inject it into SpawningServer.
This makes the test server spawner instance use an already configured Forwarder
instance for every single unit test rather than instantiating Forwarder every
time (which also meant unnecessarily running 'adb forward' for every single
unit test).
Note that this CL also makes Forwarder thread-safe. This is due to the fact
that the test server spawner does its work on a worker thread and not to the
fact that a single Forwarder instance can be shared accross multiple shards as
one could think.
BUG=229685, 239014
R=bulach@chromium.org, craigdh@chromium.org, frankf@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=200500
Patch Set 1 #
Total comments: 9
Patch Set 2 : Address Frank's comments #
Total comments: 1
Patch Set 3 : Address Craig + Frank comments #
Messages
Total messages: 12 (0 generated)
|