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

Unified Diff: telemetry/telemetry/internal/util/webpagereplay_go_server.py

Issue 3015603002: [Clean up] Remove code related to install test ca in Telemetry (Closed)
Patch Set: Created 3 years, 3 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
« no previous file with comments | « telemetry/telemetry/internal/platform/platform_backend.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: telemetry/telemetry/internal/util/webpagereplay_go_server.py
diff --git a/telemetry/telemetry/internal/util/webpagereplay_go_server.py b/telemetry/telemetry/internal/util/webpagereplay_go_server.py
index 0879d6d840637b620cc5961b9cad4a205da67bab..63d3b1cdc06ef23dbd4d7caf1ae8f21324a3323e 100644
--- a/telemetry/telemetry/internal/util/webpagereplay_go_server.py
+++ b/telemetry/telemetry/internal/util/webpagereplay_go_server.py
@@ -99,51 +99,6 @@ class ReplayServer(object):
'wpr_go', py_utils.GetHostArchName(), py_utils.GetHostOsName())
return cls._go_binary_path
- @classmethod
- def InstallRootCertificate(cls, android_device_id=None, adb_path=None):
- """Install root certificate on the host machine or on remote Android device.
-
- Args:
- android_device_id: a string id of the Android device.
- adb_path: path to adb binary to use for issuing commands to the device.
- This is specified iff android_device_id is specified.
- """
- assert ((android_device_id is None and adb_path is None) or
- (android_device_id is not None and adb_path is not None)), (
- 'android_device_id and adb_path must be both specified or '
- 'not specified')
- go_binary_path = cls._GetGoBinaryPath()
- if android_device_id is None:
- subprocess.check_call([go_binary_path, 'installroot'])
- else:
- subprocess.check_call(
- [go_binary_path, 'installroot',
- '--android_device_id=%s' % android_device_id,
- '--adb_binary_path=%s' % adb_path])
-
- @classmethod
- def RemoveRootCertificate(cls, android_device_id=None, adb_path=None):
- """Remove installed root certificate on the host machine or on remote
- Android device.
-
- Args:
- android_device_id: a string id of the Android device.
- adb_path: path to adb binary to use for issuing commands to the device.
- This is specified iff android_device_id is specified.
- """
- assert ((android_device_id is None and adb_path is None) or
- (android_device_id is not None and adb_path is not None)), (
- 'android_device_id and adb_path must be both specified or '
- 'not specified')
- go_binary_path = cls._GetGoBinaryPath()
- if android_device_id is None:
- subprocess.check_call([go_binary_path, 'removeroot'])
- else:
- subprocess.check_call(
- [go_binary_path, 'removeroot',
- '--android_device_id=%s' % android_device_id,
- '--adb_binary_path=%s' % adb_path])
-
@property
def http_port(self):
if not self._IsStarted():
« no previous file with comments | « telemetry/telemetry/internal/platform/platform_backend.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698