Slava Shklyaev | 73ee79d | 2019-05-14 14:15:14 +0100 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (C) 2019 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | #ifndef ANDROID_HARDWARE_NEURALNETWORKS_V1_1_GENERATED_TEST_HARNESS_H |
| 18 | #define ANDROID_HARDWARE_NEURALNETWORKS_V1_1_GENERATED_TEST_HARNESS_H |
| 19 | |
| 20 | #include <android/hardware/neuralnetworks/1.1/IDevice.h> |
| 21 | #include <android/hardware/neuralnetworks/1.1/types.h> |
| 22 | #include <functional> |
| 23 | #include <vector> |
| 24 | #include "TestHarness.h" |
| 25 | |
| 26 | namespace android { |
| 27 | namespace hardware { |
| 28 | namespace neuralnetworks { |
| 29 | namespace generated_tests { |
| 30 | |
| 31 | void Execute(const sp<V1_1::IDevice>& device, std::function<V1_1::Model(void)> create_model, |
| 32 | std::function<bool(int)> is_ignored, |
| 33 | const std::vector<::test_helper::MixedTypedExample>& examples); |
| 34 | |
| 35 | } // namespace generated_tests |
| 36 | } // namespace neuralnetworks |
| 37 | } // namespace hardware |
| 38 | } // namespace android |
| 39 | |
| 40 | #endif // ANDROID_HARDWARE_NEURALNETWORKS_V1_1_GENERATED_TEST_HARNESS_H |