Michael Butler | 2f499a9 | 2017-09-19 19:59:45 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2017 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 | #define LOG_TAG "neuralnetworks_hidl_hal_test" |
| 18 | |
Miao Wang | a2d04c8 | 2018-02-05 17:26:54 -0800 | [diff] [blame] | 19 | #include <android/hardware/neuralnetworks/1.1/types.h> |
Michael Butler | 2f499a9 | 2017-09-19 19:59:45 -0700 | [diff] [blame] | 20 | |
| 21 | namespace android { |
| 22 | namespace hardware { |
| 23 | namespace neuralnetworks { |
Michael Butler | 2f499a9 | 2017-09-19 19:59:45 -0700 | [diff] [blame] | 24 | |
Miao Wang | a2d04c8 | 2018-02-05 17:26:54 -0800 | [diff] [blame] | 25 | // create V1_1 model |
| 26 | V1_1::Model createValidTestModel_1_1(); |
| 27 | V1_1::Model createInvalidTestModel1_1_1(); |
| 28 | V1_1::Model createInvalidTestModel2_1_1(); |
| 29 | |
| 30 | // create V1_0 model |
| 31 | V1_0::Model createValidTestModel_1_0(); |
| 32 | V1_0::Model createInvalidTestModel1_1_0(); |
| 33 | V1_0::Model createInvalidTestModel2_1_0(); |
Michael Butler | 2f499a9 | 2017-09-19 19:59:45 -0700 | [diff] [blame] | 34 | |
| 35 | // create the request |
Miao Wang | a2d04c8 | 2018-02-05 17:26:54 -0800 | [diff] [blame] | 36 | V1_0::Request createValidTestRequest(); |
| 37 | V1_0::Request createInvalidTestRequest1(); |
| 38 | V1_0::Request createInvalidTestRequest2(); |
Michael Butler | 2f499a9 | 2017-09-19 19:59:45 -0700 | [diff] [blame] | 39 | |
Michael Butler | 2f499a9 | 2017-09-19 19:59:45 -0700 | [diff] [blame] | 40 | } // namespace neuralnetworks |
| 41 | } // namespace hardware |
| 42 | } // namespace android |