Chih-Hung Hsieh | 68326fe | 2017-10-31 13:49:24 -0700 | [diff] [blame] | 1 | cc_defaults { |
| 2 | name: "libaaudio_tests_defaults", |
| 3 | cflags: [ |
| 4 | "-Wall", |
| 5 | "-Werror", |
| 6 | ], |
| 7 | } |
| 8 | |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 9 | cc_test { |
| 10 | name: "test_aaudio_marshalling", |
Chih-Hung Hsieh | 68326fe | 2017-10-31 13:49:24 -0700 | [diff] [blame] | 11 | defaults: ["libaaudio_tests_defaults"], |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 12 | srcs: ["test_marshalling.cpp"], |
| 13 | shared_libs: [ |
| 14 | "libaaudio", |
| 15 | "libbinder", |
| 16 | "libcutils", |
| 17 | "libutils", |
| 18 | ], |
| 19 | } |
| 20 | |
| 21 | cc_test { |
| 22 | name: "test_block_adapter", |
Chih-Hung Hsieh | 68326fe | 2017-10-31 13:49:24 -0700 | [diff] [blame] | 23 | defaults: ["libaaudio_tests_defaults"], |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 24 | srcs: ["test_block_adapter.cpp"], |
| 25 | shared_libs: ["libaaudio"], |
| 26 | } |
| 27 | |
| 28 | cc_test { |
| 29 | name: "test_timestamps", |
Chih-Hung Hsieh | 68326fe | 2017-10-31 13:49:24 -0700 | [diff] [blame] | 30 | defaults: ["libaaudio_tests_defaults"], |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 31 | srcs: ["test_timestamps.cpp"], |
| 32 | header_libs: ["libaaudio_example_utils"], |
| 33 | shared_libs: ["libaaudio"], |
| 34 | } |
| 35 | |
| 36 | cc_test { |
| 37 | name: "test_linear_ramp", |
Chih-Hung Hsieh | 68326fe | 2017-10-31 13:49:24 -0700 | [diff] [blame] | 38 | defaults: ["libaaudio_tests_defaults"], |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 39 | srcs: ["test_linear_ramp.cpp"], |
| 40 | shared_libs: ["libaaudio"], |
| 41 | } |
| 42 | |
| 43 | cc_test { |
| 44 | name: "test_open_params", |
Chih-Hung Hsieh | 68326fe | 2017-10-31 13:49:24 -0700 | [diff] [blame] | 45 | defaults: ["libaaudio_tests_defaults"], |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 46 | srcs: ["test_open_params.cpp"], |
| 47 | shared_libs: [ |
| 48 | "libaaudio", |
| 49 | "libbinder", |
| 50 | "libcutils", |
| 51 | "libutils", |
| 52 | ], |
| 53 | } |
| 54 | |
| 55 | cc_test { |
| 56 | name: "test_no_close", |
Chih-Hung Hsieh | 68326fe | 2017-10-31 13:49:24 -0700 | [diff] [blame] | 57 | defaults: ["libaaudio_tests_defaults"], |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 58 | srcs: ["test_no_close.cpp"], |
| 59 | shared_libs: [ |
| 60 | "libaaudio", |
| 61 | "libbinder", |
| 62 | "libcutils", |
| 63 | "libutils", |
| 64 | ], |
| 65 | } |
| 66 | |
| 67 | cc_test { |
| 68 | name: "test_aaudio_recovery", |
Chih-Hung Hsieh | 68326fe | 2017-10-31 13:49:24 -0700 | [diff] [blame] | 69 | defaults: ["libaaudio_tests_defaults"], |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 70 | srcs: ["test_recovery.cpp"], |
| 71 | shared_libs: [ |
| 72 | "libaaudio", |
| 73 | "libbinder", |
| 74 | "libcutils", |
| 75 | "libutils", |
| 76 | ], |
| 77 | } |
| 78 | |
| 79 | cc_test { |
| 80 | name: "test_n_streams", |
Chih-Hung Hsieh | 68326fe | 2017-10-31 13:49:24 -0700 | [diff] [blame] | 81 | defaults: ["libaaudio_tests_defaults"], |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 82 | srcs: ["test_n_streams.cpp"], |
| 83 | shared_libs: [ |
| 84 | "libaaudio", |
| 85 | "libbinder", |
| 86 | "libcutils", |
| 87 | "libutils", |
| 88 | ], |
| 89 | } |
| 90 | |
| 91 | cc_test { |
| 92 | name: "test_bad_disconnect", |
Chih-Hung Hsieh | 68326fe | 2017-10-31 13:49:24 -0700 | [diff] [blame] | 93 | defaults: ["libaaudio_tests_defaults"], |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 94 | srcs: ["test_bad_disconnect.cpp"], |
| 95 | shared_libs: [ |
| 96 | "libaaudio", |
| 97 | "libbinder", |
| 98 | "libcutils", |
| 99 | "libutils", |
| 100 | ], |
| 101 | } |
Phil Burk | 9a9e600 | 2017-11-17 12:17:37 -0800 | [diff] [blame] | 102 | |
| 103 | cc_test { |
| 104 | name: "test_various", |
| 105 | defaults: ["libaaudio_tests_defaults"], |
| 106 | srcs: ["test_various.cpp"], |
| 107 | shared_libs: [ |
| 108 | "libaaudio", |
| 109 | "libbinder", |
| 110 | "libcutils", |
| 111 | "libutils", |
| 112 | ], |
| 113 | } |
Phil Burk | 8693867 | 2017-11-27 13:49:40 -0800 | [diff] [blame] | 114 | |
| 115 | cc_test { |
| 116 | name: "test_aaudio_monkey", |
| 117 | defaults: ["libaaudio_tests_defaults"], |
| 118 | srcs: ["test_aaudio_monkey.cpp"], |
| 119 | header_libs: ["libaaudio_example_utils"], |
| 120 | shared_libs: [ |
| 121 | "libaaudio", |
| 122 | "libbinder", |
| 123 | "libcutils", |
| 124 | "libutils", |
| 125 | ], |
| 126 | } |
Phil Burk | f9d1b99 | 2017-12-21 16:54:18 -0800 | [diff] [blame^] | 127 | |
| 128 | cc_test { |
| 129 | name: "test_attributes", |
| 130 | defaults: ["libaaudio_tests_defaults"], |
| 131 | srcs: ["test_attributes.cpp"], |
| 132 | shared_libs: [ |
| 133 | "libaaudio", |
| 134 | "libbinder", |
| 135 | "libcutils", |
| 136 | "libutils", |
| 137 | ], |
| 138 | } |