Home | History | Annotate | Download | only in test
      1 // Copyright (C) 2017 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 cc_test {
     16     name: "libvintf_test",
     17     host_supported: true,
     18     gtest: false,
     19     srcs: ["main.cpp"],
     20 
     21     shared_libs: [
     22         "libbase",
     23         "libcutils",
     24         "liblog",
     25         "libvintf",
     26     ],
     27     static_libs: ["libgtest"],
     28 
     29     cflags: [
     30         "-O0",
     31         "-g",
     32     ],
     33     target: {
     34         host: {
     35             cflags: ["-DLIBVINTF_HOST"],
     36         }
     37     }
     38 }
     39 
     40 cc_test {
     41     name: "vintf_object_test",
     42     host_supported: true,
     43     native_coverage: true,
     44     srcs: [
     45         "vintf_object_tests.cpp",
     46     ],
     47     shared_libs: [
     48         "libbase",
     49         "libcutils",
     50         "liblog",
     51         "libvintftest",
     52     ],
     53     static_libs: [
     54         "libgtest",
     55         "libgmock",
     56     ],
     57     cflags: [
     58         "-O0",
     59         "-g",
     60     ],
     61 }
     62