1 /* 2 * Copyright 2020 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 EVS_MANAGER_1_1_TEST_FUZZER_COMMON_H_ 18 #define EVS_MANAGER_1_1_TEST_FUZZER_COMMON_H_ 19 20 namespace android { 21 namespace automotive { 22 namespace evs { 23 namespace V1_1 { 24 namespace implementation { 25 26 #define EVS_FUZZ_BASE_ENUM \ 27 EVS_FUZZ_NOTIFY, /*verify notify*/ \ 28 EVS_FUZZ_GET_HW_CAMERA, /*verify getHalCameras*/ \ 29 EVS_FUZZ_DELIVER_FRAME, /* verify deliverFrame */ \ 30 EVS_FUZZ_DONE_WITH_FRAME_1_0, /* verify doneWithFrame */ \ 31 EVS_FUZZ_DONE_WITH_FRAME_1_1, /* verify doneWithFrame_1_1 */ \ 32 EVS_FUZZ_SET_PRIMARY, /* verify setPrimary */ \ 33 EVS_FUZZ_FORCE_PRIMARY, /* verify forcePrimary */ \ 34 EVS_FUZZ_UNSET_PRIMARY, /* verify unsetPrimary */ \ 35 EVS_FUZZ_SET_PARAMETER, /* verify setIntParameter */ \ 36 EVS_FUZZ_GET_PARAMETER, /* verify getIntParameter */ \ 37 EVS_FUZZ_API_SUM 38 39 const char* kMockHWEnumeratorName = "hw/fuzzEVSMock"; 40 const uint64_t startMockHWCameraId = 1024; 41 const uint64_t endMockHWCameraId = 1028; 42 const uint64_t startMockHWDisplayId = 256; 43 const uint64_t endMockHWDisplayId = 258; 44 45 } // namespace implementation 46 } // namespace V1_1 47 } // namespace evs 48 } // namespace automotive 49 } // namespace android 50 51 #endif // EVS_MANAGER_1_1_TEST_FUZZER_COMMON_H_ 52