telemetry.internal.platform.network_controller_backend | index telemetry/internal/platform/network_controller_backend.py

`# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.`

Modules
`` |  |
telemetry.internal.forwarders | os | telemetry.internal.util.webpagereplay | telemetry.util.wpr_modes

Classes
`` |  | __builtin__.object NetworkControllerBackend exceptions.Exception(exceptions.BaseException) ArchiveDoesNotExistError ReplayAndBrowserPortsError
class ArchiveDoesNotExistError(exceptions.Exception)
`` | `Raised when the archive path does not exist for replay mode.`
| Method resolution order: ArchiveDoesNotExistError exceptions.Exception exceptions.BaseException __builtin__.object Data descriptors defined here: __weakref__ `list of weak references to the object (if defined)` Methods inherited from exceptions.Exception: __init__(...) `x.__init__(...) initializes x; see help(type(x)) for signature` Data and other attributes inherited from exceptions.Exception: __new__ = <built-in method __new__ of type object> `T.__new__(S, ...) -> a new object with type S, a subtype of T` Methods inherited from exceptions.BaseException: __delattr__(...) `x.__delattr__('name') <==> del x.name` __getattribute__(...) `x.__getattribute__('name') <==> x.name` __getitem__(...) `x.__getitem__(y) <==> x[y]` __getslice__(...) `x.__getslice__(i, j) <==> x[i:j] Use of negative indices is not supported.` __reduce__(...) __repr__(...) `x.__repr__() <==> repr(x)` __setattr__(...) `x.__setattr__('name', value) <==> x.name = value` __setstate__(...) __str__(...) `x.__str__() <==> str(x)` __unicode__(...) Data descriptors inherited from exceptions.BaseException: __dict__ args message
class NetworkControllerBackend(__builtin__.object)
`` | `Control network settings and servers to simulate the Web. Network changes include forwarding device ports to host platform ports. Web Page Replay is used to record and replay HTTP/HTTPS responses.`
| Methods defined here: SetReplayArgs(self, archive_path, wpr_mode, netsim, extra_wpr_args, make_javascript_deterministic=False) `Save the arguments needed for replay. To make the settings effective, this call must be followed by a call to UpdateReplay. Args: archive_path: a path to a specific WPR archive. wpr_mode: one of wpr_modes.WPR_OFF, wpr_modes.WPR_APPEND, wpr_modes.WPR_REPLAY, or wpr_modes.WPR_RECORD. netsim: a net_config string ('dialup', '3g', 'dsl', 'cable', or 'fios'). extra_wpr_args: a list of addtional replay args (or an empty list). make_javascript_deterministic: True if replay should inject a script to make JavaScript behave deterministically (e.g., override Date()).` StopReplay(self) UpdateReplay(self, browser_backend=None) `Start or reuse Web Page Replay. UpdateReplay must be called after every call to SetReplayArgs. TODO(slamm): Update replay in SetReplayArgs once the browser_backend dependencies move to platform. https://crbug.com/423962 browser_backend properties used: - Input: wpr_port_pairs - Output: wpr_port_pairs (browser uses for --testing-fixed-* flags). Args: browser_backend: instance of telemetry.core.backends.browser_backend` __init__(self, platform_backend) Data descriptors defined here: __dict__ `dictionary for instance variables (if defined)` __weakref__ `list of weak references to the object (if defined)` wpr_http_device_port wpr_https_device_port
class ReplayAndBrowserPortsError(exceptions.Exception)
`` | `Raised an existing browser would get different remote replay ports.`
| Method resolution order: ReplayAndBrowserPortsError exceptions.Exception exceptions.BaseException __builtin__.object Data descriptors defined here: __weakref__ `list of weak references to the object (if defined)` Methods inherited from exceptions.Exception: __init__(...) `x.__init__(...) initializes x; see help(type(x)) for signature` Data and other attributes inherited from exceptions.Exception: __new__ = <built-in method __new__ of type object> `T.__new__(S, ...) -> a new object with type S, a subtype of T` Methods inherited from exceptions.BaseException: __delattr__(...) `x.__delattr__('name') <==> del x.name` __getattribute__(...) `x.__getattribute__('name') <==> x.name` __getitem__(...) `x.__getitem__(y) <==> x[y]` __getslice__(...) `x.__getslice__(i, j) <==> x[i:j] Use of negative indices is not supported.` __reduce__(...) __repr__(...) `x.__repr__() <==> repr(x)` __setattr__(...) `x.__setattr__('name', value) <==> x.name = value` __setstate__(...) __str__(...) `x.__str__() <==> str(x)` __unicode__(...) Data descriptors inherited from exceptions.BaseException: __dict__ args message