1/* 2 * Copyright (C) 2019 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 17cc_library_headers { 18 name: "libgoogle_camera_hal_tests_headers", 19 vendor_available: true, 20 export_include_dirs: [ 21 ".", 22 ], 23} 24 25cc_library_shared { 26 name: "libgoogle_camera_hal_tests", 27 defaults: ["google_camera_hal_defaults"], 28 owner: "google", 29 vendor_available: true, 30 srcs: [ 31 "camera_device_session_tests.cc", 32 "camera_device_tests.cc", 33 "camera_id_manager_tests.cc", 34 "camera_provider_tests.cc", 35 "gralloc_buffer_allocator_tests.cc", 36 "hal_camera_metadata_tests.cc", 37 "hwl_buffer_allocator_tests.cc", 38 "internal_stream_manager_tests.cc", 39 "mock_device_session_hwl.cc", 40 "pipeline_request_id_manager_tests.cc", 41 "process_block_tests.cc", 42 "request_processor_tests.cc", 43 "result_dispatcher_tests.cc", 44 "result_processor_tests.cc", 45 "stream_buffer_cache_manager_tests.cc", 46 "test_utils.cc", 47 "vendor_tag_tests.cc", 48 "zsl_buffer_manager_tests.cc", 49 ], 50 shared_libs: [ 51 "android.hardware.camera.provider@2.4", 52 "android.hardware.graphics.mapper@2.0", 53 "android.hardware.graphics.mapper@3.0", 54 "android.hardware.graphics.mapper@4.0", 55 "libcamera_metadata", 56 "libcutils", 57 "libgooglecamerahal", 58 "libgooglecamerahalutils", 59 "libhardware", 60 "libhidlbase", 61 "liblog", 62 "libutils", 63 ], 64 static_libs: [ 65 "libgmock", 66 "libgtest", 67 ], 68 header_libs: [ 69 "libhardware_headers", 70 ], 71 export_include_dirs: ["."], 72} 73 74cc_test { 75 name: "google_camera_hal_tests", 76 owner: "google", 77 vendor: true, 78 gtest: true, 79 srcs: [ 80 "google_camera_hal_tests.cc", 81 ], 82 shared_libs: [ 83 "libgoogle_camera_hal_tests", 84 "liblog", 85 "libutils", 86 ], 87 local_include_dirs: ["."], 88} 89