Slava Shklyaev | feb87a9 | 2018-09-12 14:52:02 +0100 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (C) 2018 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 | |
| 19 | #include "VtsHalNeuralnetworks.h" |
| 20 | |
| 21 | namespace android { |
| 22 | namespace hardware { |
| 23 | namespace neuralnetworks { |
| 24 | namespace V1_2 { |
| 25 | namespace vts { |
| 26 | namespace functional { |
| 27 | |
| 28 | using V1_1::Capabilities; |
| 29 | |
| 30 | // create device test |
| 31 | TEST_F(NeuralnetworksHidlTest, CreateDevice) {} |
| 32 | |
| 33 | // status test |
| 34 | TEST_F(NeuralnetworksHidlTest, StatusTest) { |
| 35 | Return<DeviceStatus> status = device->getStatus(); |
| 36 | ASSERT_TRUE(status.isOk()); |
| 37 | EXPECT_EQ(DeviceStatus::AVAILABLE, static_cast<DeviceStatus>(status)); |
| 38 | } |
| 39 | |
| 40 | } // namespace functional |
| 41 | } // namespace vts |
| 42 | } // namespace V1_2 |
| 43 | } // namespace neuralnetworks |
| 44 | } // namespace hardware |
| 45 | } // namespace android |