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