| # Copyright 2018 the V8 project authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| class LoadProc(base.TestProc): |
| """First processor in the chain that passes all tests to the next processor. |
| def __init__(self, tests): |
| super(LoadProc, self).__init__() |
| def load_initial_tests(self, initial_batch_size): |
| exec_proc: execution processor that the tests are being loaded into |
| initial_batch_size: initial number of tests to load |
| while loaded_tests < initial_batch_size: |
| def next_test(self, test): |
| assert False, 'Nothing can be connected to the LoadProc' |
| def result_for(self, test, result): |
| while not self._send_test(next(self.tests)): |