1// Copyright (C) 2016 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// While it's arguably overkill to have unit test for our testing code, 16// this testing code runs under an embedded environment which is much more 17// difficult to test. To the extent that we have platform-independent 18// code here, it seems a long-term time saver to have Linux tests for 19// what we can easily test. 20 21package { 22 default_team: "trendy_team_context_hub", 23 // See: http://go/android-license-faq 24 // A large-scale-change added 'default_applicable_licenses' to import 25 // all of the 'license_kinds' from "system_chre_license" 26 // to get the below license kinds: 27 // SPDX-license-identifier-Apache-2.0 28 default_applicable_licenses: ["system_chre_license"], 29} 30 31cc_test_host { 32 name: "nanoapp_chqts_shared_tests", 33 34 srcs: [ 35 // Files under test 36 "shared/chunk_allocator.cc", 37 "shared/nano_endian.cc", 38 "shared/nano_string.cc", 39 40 // Testing source 41 "shared/chunk_allocator_test.cc", 42 "shared/nano_endian_be_test.cc", 43 "shared/nano_endian_le_test.cc", 44 "shared/nano_endian_test.cc", 45 "shared/nano_string_test.cc", 46 ], 47 48 cppflags: [ 49 "-Wall", 50 "-Werror", 51 "-Wextra", 52 53 "-DINTERNAL_TESTING", 54 ], 55 56 target: { 57 darwin: { 58 enabled: false, 59 }, 60 }, 61} 62