• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    // See: http://go/android-license-faq
23    // A large-scale-change added 'default_applicable_licenses' to import
24    // all of the 'license_kinds' from "system_chre_license"
25    // to get the below license kinds:
26    //   SPDX-license-identifier-Apache-2.0
27    default_applicable_licenses: ["system_chre_license"],
28}
29
30cc_test_host {
31    name: "nanoapp_chqts_shared_tests",
32
33    srcs: [
34        // Files under test
35        "shared/chunk_allocator.cc",
36        "shared/nano_endian.cc",
37        "shared/nano_string.cc",
38
39        // Testing source
40        "shared/chunk_allocator_test.cc",
41        "shared/nano_endian_be_test.cc",
42        "shared/nano_endian_le_test.cc",
43        "shared/nano_endian_test.cc",
44        "shared/nano_string_test.cc",
45    ],
46
47    cppflags: [
48        "-Wall",
49        "-Wextra",
50        "-Werror",
51
52        "-DINTERNAL_TESTING",
53    ],
54
55    target: {
56        darwin: {
57            enabled: false,
58        },
59    },
60}
61