/* * Copyright 2022 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #pragma once #include #include #include #include #include namespace aidl::android::automotive::evs::implementation { namespace hidlevs = ::android::hardware::automotive::evs; class MockHidlEvsEnumerator : public hidlevs::V1_1::IEvsEnumerator { public: MockHidlEvsEnumerator() = default; virtual ~MockHidlEvsEnumerator() = default; // Methods from hardware::automotive::evs::V1_0::IEvsEnumerator follow. MOCK_METHOD(::android::hardware::Return, getCameraList, (getCameraList_cb), (override)); MOCK_METHOD(::android::hardware::Return<::android::sp>, openCamera, (const ::android::hardware::hidl_string&), (override)); MOCK_METHOD(::android::hardware::Return, closeCamera, (const ::android::sp&), (override)); MOCK_METHOD(::android::hardware::Return<::android::sp>, openDisplay, (), (override)); MOCK_METHOD(::android::hardware::Return, closeDisplay, (const ::android::sp&), (override)); MOCK_METHOD(::android::hardware::Return, getDisplayState, (), (override)); // Methods from hardware::automotive::evs::V1_1::IEvsEnumerator follow. MOCK_METHOD(::android::hardware::Return, getCameraList_1_1, (getCameraList_1_1_cb), (override)); MOCK_METHOD(::android::hardware::Return<::android::sp>, openCamera_1_1, (const ::android::hardware::hidl_string&, const ::android::hardware::camera::device::V3_2::Stream&), (override)); MOCK_METHOD(::android::hardware::Return, isHardware, (), (override)); MOCK_METHOD(::android::hardware::Return, getDisplayIdList, (getDisplayIdList_cb), (override)); MOCK_METHOD(::android::hardware::Return<::android::sp>, openDisplay_1_1, (uint8_t), (override)); MOCK_METHOD(::android::hardware::Return, getUltrasonicsArrayList, (getUltrasonicsArrayList_cb), (override)); MOCK_METHOD(::android::hardware::Return<::android::sp>, openUltrasonicsArray, (const ::android::hardware::hidl_string&), (override)); MOCK_METHOD(::android::hardware::Return, closeUltrasonicsArray, (const ::android::sp&), (override)); }; using NiceMockHidlEvsEnumerator = ::testing::NiceMock; } // namespace aidl::android::automotive::evs::implementation