| # Copyright 2019 The Fuchsia Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| from recipe_engine import recipe_test_api |
| from RECIPE_MODULES.fuchsia.testing_requests import api |
| |
| |
| class FuchsiaTestingRequestsTestApi(recipe_test_api.RecipeTestApi): |
| SERIAL_LOG_NAME = api.SERIAL_LOG_NAME |
| SYSLOG_NAME = api.SYSLOG_NAME |
| TEST_RESULTS_DIR_NAME = api.TestingRequestsApi.TEST_RESULTS_DIR_NAME |
| |
| def task_requests_step_data(self, task_requests, step_name): |
| """Returns mock step data for swarming task requests.""" |
| return self.step_data(step_name, self.m.file.read_json(task_requests)) |