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