1 /* 2 * Copyright (C) 2022 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 CPP_EVS_MANAGER_1_1_TEST_UNIT_MOCKEVSDISPLAY_H_ 18 #define CPP_EVS_MANAGER_1_1_TEST_UNIT_MOCKEVSDISPLAY_H_ 19 20 #include <android/hardware/automotive/evs/1.0/IEvsDisplay.h> 21 #include <gmock/gmock.h> 22 #include <gtest/gtest.h> 23 24 namespace android::automotive::evs::V1_1::implementation { 25 26 class MockEvsDisplay_1_0 : public ::android::hardware::automotive::evs::V1_0::IEvsDisplay { 27 public: 28 virtual ~MockEvsDisplay_1_0() = default; 29 30 MOCK_METHOD(::android::hardware::Return<void>, getDisplayInfo, (getDisplayInfo_cb), (override)); 31 MOCK_METHOD(::android::hardware::Return<::android::hardware::automotive::evs::V1_0::EvsResult>, 32 setDisplayState, (::android::hardware::automotive::evs::V1_0::DisplayState), 33 (override)); 34 MOCK_METHOD( 35 ::android::hardware::Return<::android::hardware::automotive::evs::V1_0::DisplayState>, 36 getDisplayState, (), (override)); 37 MOCK_METHOD(::android::hardware::Return<void>, getTargetBuffer, (getTargetBuffer_cb), 38 (override)); 39 MOCK_METHOD(::android::hardware::Return<::android::hardware::automotive::evs::V1_0::EvsResult>, 40 returnTargetBufferForDisplay, 41 (const ::android::hardware::automotive::evs::V1_0::BufferDesc&), (override)); 42 MOCK_METHOD(::android::hardware::Return<void>, debug, 43 (const ::android::hardware::hidl_handle&, 44 const ::android::hardware::hidl_vec<::android::hardware::hidl_string>&), 45 (override)); 46 MOCK_METHOD(::android::hardware::Return<void>, getHashChain, (getHashChain_cb), (override)); 47 MOCK_METHOD(::android::hardware::Return<void>, setHALInstrumentation, (), (override)); 48 MOCK_METHOD(::android::hardware::Return<bool>, linkToDeath, 49 (const ::android::sp<::android::hardware::hidl_death_recipient>&, uint64_t), 50 (override)); 51 MOCK_METHOD(::android::hardware::Return<void>, ping, (), (override)); 52 MOCK_METHOD(::android::hardware::Return<void>, getDebugInfo, (getDebugInfo_cb), (override)); 53 MOCK_METHOD(::android::hardware::Return<void>, notifySyspropsChanged, (), (override)); 54 MOCK_METHOD(::android::hardware::Return<bool>, unlinkToDeath, 55 (const ::android::sp<::android::hardware::hidl_death_recipient>&), (override)); 56 }; 57 58 } // namespace android::automotive::evs::V1_1::implementation 59 60 #endif // CPP_EVS_MANAGER_1_1_TEST_UNIT_MOCKEVSDISPLAY_H_ 61