Home | History | Annotate | Download | only in performance
      1 //
      2 // Copyright (C) 2017 The Android Open Source Project
      3 //
      4 // Licensed under the Apache License, Version 2.0 (the "License");
      5 // you may not use this file except in compliance with the License.
      6 // You may obtain a copy of the License at
      7 //
      8 //      http://www.apache.org/licenses/LICENSE-2.0
      9 //
     10 // Unless required by applicable law or agreed to in writing, software
     11 // distributed under the License is distributed on an "AS IS" BASIS,
     12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13 // See the License for the specific language governing permissions and
     14 // limitations under the License.
     15 //
     16 
     17 cc_defaults {
     18     name: "libhwbinder_test_defaults",
     19 
     20     cflags: [
     21         "-Wall",
     22         "-Werror",
     23     ],
     24     shared_libs: [
     25         "libhidlbase",
     26         "libhidltransport",
     27         "libhwbinder",
     28         "liblog",
     29         "libutils",
     30         "libcutils",
     31     ],
     32 }
     33 
     34 cc_benchmark {
     35     name: "libhwbinder_benchmark",
     36     defaults: ["libhwbinder_test_defaults"],
     37     srcs: ["Benchmark.cpp"],
     38     static_libs: ["android.hardware.tests.libhwbinder (a] 1.0"],
     39     required: ["android.hardware.tests.libhwbinder (a] 1.0-impl"],
     40 }
     41 
     42 // build for benchmark test based on binder.
     43 cc_benchmark {
     44     name: "libbinder_benchmark",
     45 
     46     srcs: ["Benchmark_binder.cpp"],
     47     cflags: [
     48         "-Wall",
     49         "-Werror",
     50     ],
     51     shared_libs: [
     52         "libbinder",
     53         "libutils",
     54         "android.hardware.tests.libbinder",
     55     ],
     56 }
     57 
     58 // build for throughput benchmark test for hwbinder.
     59 cc_test {
     60     name: "hwbinderThroughputTest",
     61     defaults: ["libhwbinder_test_defaults"],
     62     srcs: ["Benchmark_throughput.cpp"],
     63     static_libs: ["android.hardware.tests.libhwbinder (a] 1.0"],
     64     required: ["android.hardware.tests.libhwbinder (a] 1.0-impl"],
     65 }
     66 
     67 // build for latency benchmark test for hwbinder.
     68 cc_test {
     69     name: "libhwbinder_latency",
     70     defaults: ["libhwbinder_test_defaults"],
     71 
     72     srcs: [
     73         "Latency.cpp",
     74         "PerfTest.cpp",
     75     ],
     76 
     77     static_libs: ["android.hardware.tests.libhwbinder (a] 1.0"],
     78 
     79     required: ["android.hardware.tests.libhwbinder (a] 1.0-impl"],
     80 }
     81