1 // Copyright 2020 The Android Open Source Project 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 #ifndef EVS_MANAGER_1_1_TEST_FUZZER_MOCKHWDISPLAY_H_ 16 #define EVS_MANAGER_1_1_TEST_FUZZER_MOCKHWDISPLAY_H_ 17 18 #include <gmock/gmock.h> 19 #include <gtest/gtest.h> 20 21 namespace android { 22 namespace automotive { 23 namespace evs { 24 namespace V1_1 { 25 namespace implementation { 26 27 class MockHWDisplay : public IEvsDisplay_1_1 { 28 public: 29 MockHWDisplay() = default; 30 getDisplayInfo(getDisplayInfo_cb _hidl_cb)31 Return<void> getDisplayInfo(getDisplayInfo_cb _hidl_cb) override { return {}; } setDisplayState(EvsDisplayState state)32 Return<EvsResult> setDisplayState(EvsDisplayState state) override { return EvsResult::OK; } getDisplayState()33 Return<EvsDisplayState> getDisplayState() override { return EvsDisplayState::VISIBLE; } getTargetBuffer(getTargetBuffer_cb _hidl_cb)34 Return<void> getTargetBuffer(getTargetBuffer_cb _hidl_cb) override { return {}; } returnTargetBufferForDisplay(const BufferDesc_1_0 & buffer)35 Return<EvsResult> returnTargetBufferForDisplay(const BufferDesc_1_0& buffer) override { 36 return EvsResult::OK; 37 } getDisplayInfo_1_1(getDisplayInfo_1_1_cb _info_cb)38 Return<void> getDisplayInfo_1_1(getDisplayInfo_1_1_cb _info_cb) override { 39 return {}; 40 } 41 }; 42 43 } // namespace implementation 44 } // namespace V1_1 45 } // namespace evs 46 } // namespace automotive 47 } // namespace android 48 49 #endif // EVS_MANAGER_1_1_TEST_FUZZER_MOCKHWDISPLAY_H_ 50