1*84e33947SAndroid Build Coastguard Worker// Copyright (C) 2016 The Android Open Source Project 2*84e33947SAndroid Build Coastguard Worker// 3*84e33947SAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License"); 4*84e33947SAndroid Build Coastguard Worker// you may not use this file except in compliance with the License. 5*84e33947SAndroid Build Coastguard Worker// You may obtain a copy of the License at 6*84e33947SAndroid Build Coastguard Worker// 7*84e33947SAndroid Build Coastguard Worker// http://www.apache.org/licenses/LICENSE-2.0 8*84e33947SAndroid Build Coastguard Worker// 9*84e33947SAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software 10*84e33947SAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS, 11*84e33947SAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12*84e33947SAndroid Build Coastguard Worker// See the License for the specific language governing permissions and 13*84e33947SAndroid Build Coastguard Worker// limitations under the License. 14*84e33947SAndroid Build Coastguard Worker 15*84e33947SAndroid Build Coastguard Worker// While it's arguably overkill to have unit test for our testing code, 16*84e33947SAndroid Build Coastguard Worker// this testing code runs under an embedded environment which is much more 17*84e33947SAndroid Build Coastguard Worker// difficult to test. To the extent that we have platform-independent 18*84e33947SAndroid Build Coastguard Worker// code here, it seems a long-term time saver to have Linux tests for 19*84e33947SAndroid Build Coastguard Worker// what we can easily test. 20*84e33947SAndroid Build Coastguard Worker 21*84e33947SAndroid Build Coastguard Workerpackage { 22*84e33947SAndroid Build Coastguard Worker default_team: "trendy_team_context_hub", 23*84e33947SAndroid Build Coastguard Worker // See: http://go/android-license-faq 24*84e33947SAndroid Build Coastguard Worker // A large-scale-change added 'default_applicable_licenses' to import 25*84e33947SAndroid Build Coastguard Worker // all of the 'license_kinds' from "system_chre_license" 26*84e33947SAndroid Build Coastguard Worker // to get the below license kinds: 27*84e33947SAndroid Build Coastguard Worker // SPDX-license-identifier-Apache-2.0 28*84e33947SAndroid Build Coastguard Worker default_applicable_licenses: ["system_chre_license"], 29*84e33947SAndroid Build Coastguard Worker} 30*84e33947SAndroid Build Coastguard Worker 31*84e33947SAndroid Build Coastguard Workercc_test_host { 32*84e33947SAndroid Build Coastguard Worker name: "nanoapp_chqts_shared_tests", 33*84e33947SAndroid Build Coastguard Worker 34*84e33947SAndroid Build Coastguard Worker srcs: [ 35*84e33947SAndroid Build Coastguard Worker // Files under test 36*84e33947SAndroid Build Coastguard Worker "shared/chunk_allocator.cc", 37*84e33947SAndroid Build Coastguard Worker "shared/nano_endian.cc", 38*84e33947SAndroid Build Coastguard Worker "shared/nano_string.cc", 39*84e33947SAndroid Build Coastguard Worker 40*84e33947SAndroid Build Coastguard Worker // Testing source 41*84e33947SAndroid Build Coastguard Worker "shared/chunk_allocator_test.cc", 42*84e33947SAndroid Build Coastguard Worker "shared/nano_endian_be_test.cc", 43*84e33947SAndroid Build Coastguard Worker "shared/nano_endian_le_test.cc", 44*84e33947SAndroid Build Coastguard Worker "shared/nano_endian_test.cc", 45*84e33947SAndroid Build Coastguard Worker "shared/nano_string_test.cc", 46*84e33947SAndroid Build Coastguard Worker ], 47*84e33947SAndroid Build Coastguard Worker 48*84e33947SAndroid Build Coastguard Worker cppflags: [ 49*84e33947SAndroid Build Coastguard Worker "-Wall", 50*84e33947SAndroid Build Coastguard Worker "-Werror", 51*84e33947SAndroid Build Coastguard Worker "-Wextra", 52*84e33947SAndroid Build Coastguard Worker 53*84e33947SAndroid Build Coastguard Worker "-DINTERNAL_TESTING", 54*84e33947SAndroid Build Coastguard Worker ], 55*84e33947SAndroid Build Coastguard Worker 56*84e33947SAndroid Build Coastguard Worker target: { 57*84e33947SAndroid Build Coastguard Worker darwin: { 58*84e33947SAndroid Build Coastguard Worker enabled: false, 59*84e33947SAndroid Build Coastguard Worker }, 60*84e33947SAndroid Build Coastguard Worker }, 61*84e33947SAndroid Build Coastguard Worker} 62