1*9c5db199SXin Li#!/usr/bin/python3 2*9c5db199SXin Li# Copyright (c) 2013 The Chromium OS Authors. All rights reserved. 3*9c5db199SXin Li# Use of this source code is governed by a BSD-style license that can be 4*9c5db199SXin Li# found in the LICENSE file. 5*9c5db199SXin Li 6*9c5db199SXin Liimport common 7*9c5db199SXin Liimport autotest_lib.server.frontend as frontend 8*9c5db199SXin Lifrom autotest_lib.frontend.afe import rpc_interface 9*9c5db199SXin Li 10*9c5db199SXin Liclass directAFE(frontend.AFE): 11*9c5db199SXin Li """ 12*9c5db199SXin Li A wrapper for frontend.AFE which exposes all of the AFE 13*9c5db199SXin Li functionality, but makes direct calls to rpc_interface rather than 14*9c5db199SXin Li making RPC calls to an RPC server. 15*9c5db199SXin Li """ 16*9c5db199SXin Li def run(self, call, **dargs): 17*9c5db199SXin Li func = rpc_interface.__getattribute__(call) 18*9c5db199SXin Li return func(**dargs) 19