Ejemplo n.º 1
0
def set_proxy():
    """
    Set Ifeng video request host to local proxy server.
    """
    host = get_local_ip()
    data_interface = RemoteObject.from_class_name(data_interface_class_name)
    call_static(data_interface, "setHost", host + ':8080/proxy')
Ejemplo n.º 2
0
def set_proxy():
    """
    Set Ifeng video request host to local proxy server.
    """
    host = get_local_ip()
    data_interface = RemoteObject.from_class_name(data_interface_class_name)
    call_static(data_interface, "setHost", host+':8080/proxy')
Ejemplo n.º 3
0
 def get_instance(cls, instrumentation):
     instrumentation.class_name = instrumentation_class_name
     ui_device_class = RemoteObject.from_class_name(ui_device_class_name)
     return UIDevice.from_object(call_static(ui_device_class, "getInstance", instrumentation))
Ejemplo n.º 4
0
 def get_instrumentation():
     instrument_registry_class = RemoteObject.from_class_name(instrument_registry)
     remote_obj = call_static(instrument_registry_class, "getInstrumentation")
     return Instrumentation.from_object(remote_obj)
Ejemplo n.º 5
0
def set_proxy():
    host = get_local_ip()
    data_interface = RemoteObject.from_class_name(data_interface_class_name)
    call_static(data_interface, "setHost", host + ':8080/proxy')
Ejemplo n.º 6
0
 def get_instance(cls, instrumentation):
     instrumentation.class_name = instrumentation_class_name
     ui_device_class = RemoteObject.from_class_name(ui_device_class_name)
     return UIDevice.from_object(
         call_static(ui_device_class, "getInstance", instrumentation))
Ejemplo n.º 7
0
 def get_instrumentation():
     instrument_registry_class = RemoteObject.from_class_name(
         instrument_registry)
     remote_obj = call_static(instrument_registry_class,
                              "getInstrumentation")
     return Instrumentation.from_object(remote_obj)