• 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
21cc_test_host {
22    name: "nanoapp_chqts_shared_tests",
23
24    srcs: [
25        // Files under test
26        "shared/dumb_allocator.cc",
27        "shared/nano_endian.cc",
28        "shared/nano_string.cc",
29
30        // Testing source
31        "shared/dumb_allocator_test.cc",
32        "shared/nano_endian_be_test.cc",
33        "shared/nano_endian_le_test.cc",
34        "shared/nano_endian_test.cc",
35        "shared/nano_string_test.cc",
36    ],
37
38    cppflags: [
39        "-Wall",
40        "-Wextra",
41        "-Werror",
42
43        "-DINTERNAL_TESTING",
44    ],
45
46    target: {
47        darwin: {
48            enabled: false,
49        },
50    },
51}
52