|
|
[telemetry] Wire TsProxy through telemetry's network stack.
*** NOTE *** please do not revert this CL as it's causing failure on Windows in the catapult roll. I am looking into fixing the failure.
This patch makes all the network access of Chrome browser
under test go through the ts_proxy server.
When a platform instance in telemetry is initiated, we set up
a ts_proxy_server for that platform & forward the ts_proxy's
port when the platform is remote platform.
For any newly created instance of WPR, we route the
ts_proxy_server' outbounds to that WPR server's ports.
Traffic between Chrome & static local server will also go
through ts_proxy_server but doesn't require any extra
code for routing because ts_proxy automatically routes
"localhost://*" url to the right host.
Any Chrome instance to be started will be routed to either
ts_proxy_server' port or its corresponding forwarded port.
ts_proxy_server is only killed when telemetry process ends.
BUG=catapult:#2584
Committed: https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/9fcccf0b65703994c9541273f00a993806a95356
Total comments: 1
Total comments: 1
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+162 lines, -606 lines) |
Patch |
 |
M |
telemetry/telemetry/core/local_server.py
|
View
|
|
2 chunks |
+10 lines, -8 lines |
0 comments
|
Download
|
 |
M |
telemetry/telemetry/core/network_controller.py
|
View
|
1
2
3
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
telemetry/telemetry/internal/backends/chrome/chrome_browser_backend.py
|
View
|
1
2
|
1 chunk |
+3 lines, -11 lines |
0 comments
|
Download
|
 |
M |
telemetry/telemetry/internal/backends/chrome/chrome_browser_backend_unittest.py
|
View
|
1
2
3
4
|
3 chunks |
+10 lines, -11 lines |
0 comments
|
Download
|
 |
M |
telemetry/telemetry/internal/backends/chrome/cros_browser_backend.py
|
View
|
1
2
3
4
5
|
1 chunk |
+2 lines, -4 lines |
0 comments
|
Download
|
 |
M |
telemetry/telemetry/internal/forwarders/__init__.py
|
View
|
|
3 chunks |
+9 lines, -30 lines |
0 comments
|
Download
|
 |
M |
telemetry/telemetry/internal/forwarders/android_forwarder.py
|
View
|
|
2 chunks |
+12 lines, -15 lines |
0 comments
|
Download
|
 |
M |
telemetry/telemetry/internal/forwarders/cros_forwarder.py
|
View
|
|
2 chunks |
+13 lines, -11 lines |
1 comment
|
Download
|
 |
M |
telemetry/telemetry/internal/forwarders/cros_forwarder_unittest.py
|
View
|
|
1 chunk |
+5 lines, -12 lines |
0 comments
|
Download
|
 |
M |
telemetry/telemetry/internal/forwarders/do_nothing_forwarder.py
|
View
|
|
2 chunks |
+19 lines, -33 lines |
0 comments
|
Download
|
 |
M |
telemetry/telemetry/internal/forwarders/do_nothing_forwarder_unittest.py
|
View
|
1
2
3
4
|
1 chunk |
+7 lines, -30 lines |
0 comments
|
Download
|
 |
M |
telemetry/telemetry/internal/platform/android_platform_backend.py
|
View
|
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
telemetry/telemetry/internal/platform/cros_platform_backend.py
|
View
|
1
2
3
4
5
|
2 chunks |
+0 lines, -12 lines |
0 comments
|
Download
|
 |
M |
telemetry/telemetry/internal/platform/network_controller_backend.py
|
View
|
1
2
3
4
|
7 chunks |
+46 lines, -25 lines |
0 comments
|
Download
|
 |
D |
telemetry/telemetry/internal/platform/network_controller_backend_unittest.py
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -390 lines |
0 comments
|
Download
|
 |
M |
telemetry/telemetry/internal/platform/platform_backend.py
|
View
|
|
2 chunks |
+3 lines, -7 lines |
0 comments
|
Download
|
 |
M |
telemetry/telemetry/internal/util/ts_proxy_server.py
|
View
|
1
|
3 chunks |
+7 lines, -4 lines |
0 comments
|
Download
|
 |
M |
telemetry/telemetry/internal/util/ts_proxy_server_unittest.py
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
telemetry/telemetry/internal/util/wpr_server.py
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
telemetry/telemetry/page/shared_page_state.py
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
telemetry/telemetry/testing/browser_test_case.py
|
View
|
1
2
3
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
telemetry/telemetry/testing/fakes/__init__.py
|
View
|
1
2
3
4
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
Total messages: 37 (24 generated)
|