1# Copyright 2019 Google LLC 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# https://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# Emboss public definitions. 16 17load( 18 ":build_defs.bzl", 19 "emboss_cc_util_test", 20) 21 22emboss_cc_util_test( 23 name = "emboss_prelude_test", 24 srcs = [ 25 "emboss_prelude_test.cc", 26 ], 27 copts = ["-DEMBOSS_FORCE_ALL_CHECKS"], 28 deps = [ 29 "//runtime/cpp:cpp_utils", 30 "@com_google_googletest//:gtest_main", 31 ], 32) 33 34emboss_cc_util_test( 35 name = "emboss_arithmetic_test", 36 srcs = [ 37 "emboss_arithmetic_test.cc", 38 ], 39 copts = ["-DEMBOSS_FORCE_ALL_CHECKS"], 40 deps = [ 41 "//runtime/cpp:cpp_utils", 42 "@com_google_googletest//:gtest_main", 43 ], 44) 45 46emboss_cc_util_test( 47 name = "emboss_array_view_test", 48 srcs = [ 49 "emboss_array_view_test.cc", 50 ], 51 copts = ["-DEMBOSS_FORCE_ALL_CHECKS"], 52 deps = [ 53 "//runtime/cpp:cpp_utils", 54 "@com_google_absl//absl/strings:str_format", 55 "@com_google_googletest//:gtest_main", 56 ], 57) 58 59emboss_cc_util_test( 60 name = "emboss_bit_util_test", 61 srcs = [ 62 "emboss_bit_util_test.cc", 63 ], 64 copts = ["-DEMBOSS_FORCE_ALL_CHECKS"], 65 deps = [ 66 "//runtime/cpp:cpp_utils", 67 "@com_google_googletest//:gtest_main", 68 ], 69) 70 71emboss_cc_util_test( 72 name = "emboss_constant_view_test", 73 srcs = [ 74 "emboss_constant_view_test.cc", 75 ], 76 copts = ["-DEMBOSS_FORCE_ALL_CHECKS"], 77 deps = [ 78 "//runtime/cpp:cpp_utils", 79 "@com_google_googletest//:gtest_main", 80 ], 81) 82 83emboss_cc_util_test( 84 name = "emboss_cpp_types_test", 85 srcs = [ 86 "emboss_cpp_types_test.cc", 87 ], 88 copts = ["-DEMBOSS_FORCE_ALL_CHECKS"], 89 deps = [ 90 "//runtime/cpp:cpp_utils", 91 "@com_google_googletest//:gtest_main", 92 ], 93) 94 95emboss_cc_util_test( 96 name = "emboss_defines_test", 97 srcs = [ 98 "emboss_defines_test.cc", 99 ], 100 copts = ["-DEMBOSS_FORCE_ALL_CHECKS"], 101 deps = [ 102 "//runtime/cpp:cpp_utils", 103 "@com_google_googletest//:gtest_main", 104 ], 105) 106 107emboss_cc_util_test( 108 name = "emboss_enum_view_test", 109 srcs = [ 110 "emboss_enum_view_test.cc", 111 ], 112 copts = ["-DEMBOSS_FORCE_ALL_CHECKS"], 113 deps = [ 114 "//runtime/cpp:cpp_utils", 115 "@com_google_googletest//:gtest_main", 116 ], 117) 118 119emboss_cc_util_test( 120 name = "emboss_maybe_test", 121 srcs = [ 122 "emboss_maybe_test.cc", 123 ], 124 copts = ["-DEMBOSS_FORCE_ALL_CHECKS"], 125 deps = [ 126 "//runtime/cpp:cpp_utils", 127 "@com_google_googletest//:gtest_main", 128 ], 129) 130 131emboss_cc_util_test( 132 name = "emboss_memory_util_test", 133 srcs = [ 134 "emboss_memory_util_test.cc", 135 ], 136 copts = ["-DEMBOSS_FORCE_ALL_CHECKS"], 137 deps = [ 138 "//runtime/cpp:cpp_utils", 139 "@com_google_googletest//:gtest_main", 140 ], 141) 142 143emboss_cc_util_test( 144 name = "emboss_text_util_test", 145 srcs = [ 146 "emboss_text_util_test.cc", 147 ], 148 copts = ["-DEMBOSS_FORCE_ALL_CHECKS"], 149 deps = [ 150 "//runtime/cpp:cpp_utils", 151 "@com_google_googletest//:gtest_main", 152 ], 153) 154 155cc_test( 156 name = "emboss_cpp_util_google_integration_test", 157 srcs = [ 158 "emboss_cpp_util_google_integration_test.cc", 159 ], 160 copts = [ 161 "-DEMBOSS_FORCE_ALL_CHECKS", 162 "-Wsign-compare", 163 ], 164 deps = [ 165 "//runtime/cpp:cpp_utils", 166 "@com_google_absl//absl/strings", 167 "@com_google_googletest//:gtest_main", 168 ], 169) 170