• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/usr/bin/python2
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
6import common
7import autotest_lib.server.frontend as frontend
8from autotest_lib.frontend.afe import rpc_interface
9
10class 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