123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992 |
- #
- # Copyright 2017 The Abseil Authors.
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # https://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- #
- load(
- "//absl:copts/configure_copts.bzl",
- "ABSL_DEFAULT_COPTS",
- "ABSL_DEFAULT_LINKOPTS",
- "ABSL_TEST_COPTS",
- )
- package(default_visibility = ["//visibility:public"])
- licenses(["notice"])
- cc_library(
- name = "compressed_tuple",
- hdrs = ["internal/compressed_tuple.h"],
- copts = ABSL_DEFAULT_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- deps = [
- "//absl/utility",
- ],
- )
- cc_test(
- name = "compressed_tuple_test",
- srcs = ["internal/compressed_tuple_test.cc"],
- copts = ABSL_TEST_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- deps = [
- ":compressed_tuple",
- ":test_instance_tracker",
- "//absl/memory",
- "//absl/types:any",
- "//absl/types:optional",
- "//absl/utility",
- "@com_google_googletest//:gtest_main",
- ],
- )
- cc_library(
- name = "fixed_array",
- hdrs = ["fixed_array.h"],
- copts = ABSL_DEFAULT_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- deps = [
- ":compressed_tuple",
- "//absl/algorithm",
- "//absl/base:config",
- "//absl/base:core_headers",
- "//absl/base:dynamic_annotations",
- "//absl/base:throw_delegate",
- "//absl/memory",
- ],
- )
- cc_test(
- name = "fixed_array_test",
- srcs = ["fixed_array_test.cc"],
- copts = ABSL_TEST_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- deps = [
- ":counting_allocator",
- ":fixed_array",
- "//absl/base:config",
- "//absl/base:exception_testing",
- "//absl/hash:hash_testing",
- "//absl/memory",
- "@com_google_googletest//:gtest_main",
- ],
- )
- cc_test(
- name = "fixed_array_exception_safety_test",
- srcs = ["fixed_array_exception_safety_test.cc"],
- copts = ABSL_TEST_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- deps = [
- ":fixed_array",
- "//absl/base:config",
- "//absl/base:exception_safety_testing",
- "@com_google_googletest//:gtest_main",
- ],
- )
- cc_test(
- name = "fixed_array_benchmark",
- srcs = ["fixed_array_benchmark.cc"],
- copts = ABSL_TEST_COPTS + ["$(STACK_FRAME_UNLIMITED)"],
- linkopts = ABSL_DEFAULT_LINKOPTS,
- tags = ["benchmark"],
- deps = [
- ":fixed_array",
- "@com_github_google_benchmark//:benchmark_main",
- ],
- )
- cc_library(
- name = "inlined_vector_internal",
- hdrs = ["internal/inlined_vector.h"],
- copts = ABSL_DEFAULT_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- deps = [
- ":compressed_tuple",
- "//absl/base:core_headers",
- "//absl/memory",
- "//absl/meta:type_traits",
- "//absl/types:span",
- ],
- )
- cc_library(
- name = "inlined_vector",
- hdrs = ["inlined_vector.h"],
- copts = ABSL_DEFAULT_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- deps = [
- ":inlined_vector_internal",
- "//absl/algorithm",
- "//absl/base:core_headers",
- "//absl/base:throw_delegate",
- "//absl/memory",
- ],
- )
- cc_library(
- name = "counting_allocator",
- testonly = 1,
- hdrs = ["internal/counting_allocator.h"],
- copts = ABSL_DEFAULT_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- visibility = ["//visibility:private"],
- deps = ["//absl/base:config"],
- )
- cc_test(
- name = "inlined_vector_test",
- srcs = ["inlined_vector_test.cc"],
- copts = ABSL_TEST_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- deps = [
- ":counting_allocator",
- ":inlined_vector",
- ":test_instance_tracker",
- "//absl/base:config",
- "//absl/base:core_headers",
- "//absl/base:exception_testing",
- "//absl/base:raw_logging_internal",
- "//absl/hash:hash_testing",
- "//absl/memory",
- "//absl/strings",
- "@com_google_googletest//:gtest_main",
- ],
- )
- cc_test(
- name = "inlined_vector_benchmark",
- srcs = ["inlined_vector_benchmark.cc"],
- copts = ABSL_TEST_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- tags = ["benchmark"],
- deps = [
- ":inlined_vector",
- "//absl/base:core_headers",
- "//absl/base:raw_logging_internal",
- "//absl/strings",
- "@com_github_google_benchmark//:benchmark_main",
- ],
- )
- cc_test(
- name = "inlined_vector_exception_safety_test",
- srcs = ["inlined_vector_exception_safety_test.cc"],
- copts = ABSL_TEST_COPTS,
- deps = [
- ":inlined_vector",
- "//absl/base:config",
- "//absl/base:exception_safety_testing",
- "@com_google_googletest//:gtest_main",
- ],
- )
- cc_library(
- name = "test_instance_tracker",
- testonly = 1,
- srcs = ["internal/test_instance_tracker.cc"],
- hdrs = ["internal/test_instance_tracker.h"],
- copts = ABSL_DEFAULT_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- visibility = [
- "//absl:__subpackages__",
- ],
- deps = ["//absl/types:compare"],
- )
- cc_test(
- name = "test_instance_tracker_test",
- srcs = ["internal/test_instance_tracker_test.cc"],
- copts = ABSL_TEST_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- deps = [
- ":test_instance_tracker",
- "@com_google_googletest//:gtest_main",
- ],
- )
- NOTEST_TAGS_NONMOBILE = [
- "no_test_darwin_x86_64",
- "no_test_loonix",
- ]
- NOTEST_TAGS_MOBILE = [
- "no_test_android_arm",
- "no_test_android_arm64",
- "no_test_android_x86",
- "no_test_ios_x86_64",
- ]
- NOTEST_TAGS = NOTEST_TAGS_MOBILE + NOTEST_TAGS_NONMOBILE
- cc_library(
- name = "flat_hash_map",
- hdrs = ["flat_hash_map.h"],
- copts = ABSL_DEFAULT_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- deps = [
- ":container_memory",
- ":hash_function_defaults",
- ":raw_hash_map",
- "//absl/algorithm:container",
- "//absl/memory",
- ],
- )
- cc_test(
- name = "flat_hash_map_test",
- srcs = ["flat_hash_map_test.cc"],
- copts = ABSL_TEST_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- tags = NOTEST_TAGS_NONMOBILE,
- deps = [
- ":flat_hash_map",
- ":hash_generator_testing",
- ":unordered_map_constructor_test",
- ":unordered_map_lookup_test",
- ":unordered_map_members_test",
- ":unordered_map_modifiers_test",
- "//absl/base:raw_logging_internal",
- "//absl/types:any",
- "@com_google_googletest//:gtest_main",
- ],
- )
- cc_library(
- name = "flat_hash_set",
- hdrs = ["flat_hash_set.h"],
- copts = ABSL_DEFAULT_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- deps = [
- ":container_memory",
- ":hash_function_defaults",
- ":raw_hash_set",
- "//absl/algorithm:container",
- "//absl/base:core_headers",
- "//absl/memory",
- ],
- )
- cc_test(
- name = "flat_hash_set_test",
- srcs = ["flat_hash_set_test.cc"],
- copts = ABSL_TEST_COPTS + ["-DUNORDERED_SET_CXX17"],
- linkopts = ABSL_DEFAULT_LINKOPTS,
- tags = NOTEST_TAGS_NONMOBILE,
- deps = [
- ":flat_hash_set",
- ":hash_generator_testing",
- ":unordered_set_constructor_test",
- ":unordered_set_lookup_test",
- ":unordered_set_members_test",
- ":unordered_set_modifiers_test",
- "//absl/base:raw_logging_internal",
- "//absl/memory",
- "//absl/strings",
- "@com_google_googletest//:gtest_main",
- ],
- )
- cc_library(
- name = "node_hash_map",
- hdrs = ["node_hash_map.h"],
- copts = ABSL_DEFAULT_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- deps = [
- ":container_memory",
- ":hash_function_defaults",
- ":node_hash_policy",
- ":raw_hash_map",
- "//absl/algorithm:container",
- "//absl/memory",
- ],
- )
- cc_test(
- name = "node_hash_map_test",
- srcs = ["node_hash_map_test.cc"],
- copts = ABSL_TEST_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- tags = NOTEST_TAGS_NONMOBILE,
- deps = [
- ":hash_generator_testing",
- ":node_hash_map",
- ":tracked",
- ":unordered_map_constructor_test",
- ":unordered_map_lookup_test",
- ":unordered_map_members_test",
- ":unordered_map_modifiers_test",
- "@com_google_googletest//:gtest_main",
- ],
- )
- cc_library(
- name = "node_hash_set",
- hdrs = ["node_hash_set.h"],
- copts = ABSL_DEFAULT_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- deps = [
- ":hash_function_defaults",
- ":node_hash_policy",
- ":raw_hash_set",
- "//absl/algorithm:container",
- "//absl/memory",
- ],
- )
- cc_test(
- name = "node_hash_set_test",
- srcs = ["node_hash_set_test.cc"],
- copts = ABSL_TEST_COPTS + ["-DUNORDERED_SET_CXX17"],
- linkopts = ABSL_DEFAULT_LINKOPTS,
- tags = NOTEST_TAGS_NONMOBILE,
- deps = [
- ":node_hash_set",
- ":unordered_set_constructor_test",
- ":unordered_set_lookup_test",
- ":unordered_set_members_test",
- ":unordered_set_modifiers_test",
- "@com_google_googletest//:gtest_main",
- ],
- )
- cc_library(
- name = "container_memory",
- hdrs = ["internal/container_memory.h"],
- copts = ABSL_DEFAULT_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- deps = [
- "//absl/base:config",
- "//absl/memory",
- "//absl/meta:type_traits",
- "//absl/utility",
- ],
- )
- cc_test(
- name = "container_memory_test",
- srcs = ["internal/container_memory_test.cc"],
- copts = ABSL_TEST_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- tags = NOTEST_TAGS_NONMOBILE,
- deps = [
- ":container_memory",
- ":test_instance_tracker",
- "//absl/strings",
- "@com_google_googletest//:gtest_main",
- ],
- )
- cc_library(
- name = "hash_function_defaults",
- hdrs = ["internal/hash_function_defaults.h"],
- copts = ABSL_DEFAULT_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- deps = [
- "//absl/base:config",
- "//absl/hash",
- "//absl/strings",
- "//absl/strings:cord",
- ],
- )
- cc_test(
- name = "hash_function_defaults_test",
- srcs = ["internal/hash_function_defaults_test.cc"],
- copts = ABSL_TEST_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- tags = NOTEST_TAGS,
- deps = [
- ":hash_function_defaults",
- "//absl/hash",
- "//absl/random",
- "//absl/strings",
- "//absl/strings:cord",
- "//absl/strings:cord_test_helpers",
- "@com_google_googletest//:gtest_main",
- ],
- )
- cc_library(
- name = "hash_generator_testing",
- testonly = 1,
- srcs = ["internal/hash_generator_testing.cc"],
- hdrs = ["internal/hash_generator_testing.h"],
- copts = ABSL_TEST_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- deps = [
- ":hash_policy_testing",
- "//absl/memory",
- "//absl/meta:type_traits",
- "//absl/strings",
- ],
- )
- cc_library(
- name = "hash_policy_testing",
- testonly = 1,
- hdrs = ["internal/hash_policy_testing.h"],
- copts = ABSL_TEST_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- deps = [
- "//absl/hash",
- "//absl/strings",
- ],
- )
- cc_test(
- name = "hash_policy_testing_test",
- srcs = ["internal/hash_policy_testing_test.cc"],
- copts = ABSL_TEST_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- deps = [
- ":hash_policy_testing",
- "@com_google_googletest//:gtest_main",
- ],
- )
- cc_library(
- name = "hash_policy_traits",
- hdrs = ["internal/hash_policy_traits.h"],
- copts = ABSL_DEFAULT_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- deps = ["//absl/meta:type_traits"],
- )
- cc_test(
- name = "hash_policy_traits_test",
- srcs = ["internal/hash_policy_traits_test.cc"],
- copts = ABSL_TEST_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- deps = [
- ":hash_policy_traits",
- "@com_google_googletest//:gtest_main",
- ],
- )
- cc_library(
- name = "hashtable_debug",
- hdrs = ["internal/hashtable_debug.h"],
- copts = ABSL_DEFAULT_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- deps = [
- ":hashtable_debug_hooks",
- ],
- )
- cc_library(
- name = "hashtable_debug_hooks",
- hdrs = ["internal/hashtable_debug_hooks.h"],
- copts = ABSL_DEFAULT_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- deps = [
- "//absl/base:config",
- ],
- )
- cc_library(
- name = "hashtablez_sampler",
- srcs = [
- "internal/hashtablez_sampler.cc",
- "internal/hashtablez_sampler_force_weak_definition.cc",
- ],
- hdrs = ["internal/hashtablez_sampler.h"],
- copts = ABSL_DEFAULT_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- deps = [
- ":have_sse",
- "//absl/base",
- "//absl/base:core_headers",
- "//absl/debugging:stacktrace",
- "//absl/memory",
- "//absl/profiling:exponential_biased",
- "//absl/profiling:sample_recorder",
- "//absl/synchronization",
- "//absl/utility",
- ],
- )
- cc_test(
- name = "hashtablez_sampler_test",
- srcs = ["internal/hashtablez_sampler_test.cc"],
- linkopts = ABSL_DEFAULT_LINKOPTS,
- deps = [
- ":hashtablez_sampler",
- ":have_sse",
- "//absl/base:core_headers",
- "//absl/profiling:sample_recorder",
- "//absl/synchronization",
- "//absl/synchronization:thread_pool",
- "//absl/time",
- "@com_google_googletest//:gtest_main",
- ],
- )
- cc_library(
- name = "node_hash_policy",
- hdrs = ["internal/node_hash_policy.h"],
- copts = ABSL_DEFAULT_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- deps = ["//absl/base:config"],
- )
- cc_test(
- name = "node_hash_policy_test",
- srcs = ["internal/node_hash_policy_test.cc"],
- copts = ABSL_TEST_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- deps = [
- ":hash_policy_traits",
- ":node_hash_policy",
- "@com_google_googletest//:gtest_main",
- ],
- )
- cc_library(
- name = "raw_hash_map",
- hdrs = ["internal/raw_hash_map.h"],
- copts = ABSL_DEFAULT_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- deps = [
- ":container_memory",
- ":raw_hash_set",
- "//absl/base:throw_delegate",
- ],
- )
- cc_library(
- name = "have_sse",
- hdrs = ["internal/have_sse.h"],
- copts = ABSL_DEFAULT_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- visibility = ["//visibility:private"],
- )
- cc_library(
- name = "common",
- hdrs = ["internal/common.h"],
- copts = ABSL_DEFAULT_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- deps = [
- "//absl/meta:type_traits",
- "//absl/types:optional",
- ],
- )
- cc_library(
- name = "raw_hash_set",
- srcs = ["internal/raw_hash_set.cc"],
- hdrs = ["internal/raw_hash_set.h"],
- copts = ABSL_DEFAULT_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- deps = [
- ":common",
- ":compressed_tuple",
- ":container_memory",
- ":hash_policy_traits",
- ":hashtable_debug_hooks",
- ":hashtablez_sampler",
- ":have_sse",
- "//absl/base:config",
- "//absl/base:core_headers",
- "//absl/base:endian",
- "//absl/memory",
- "//absl/meta:type_traits",
- "//absl/numeric:bits",
- "//absl/utility",
- ],
- )
- cc_test(
- name = "raw_hash_set_test",
- srcs = ["internal/raw_hash_set_test.cc"],
- copts = ABSL_TEST_COPTS,
- linkstatic = 1,
- tags = NOTEST_TAGS,
- deps = [
- ":container_memory",
- ":hash_function_defaults",
- ":hash_policy_testing",
- ":hashtable_debug",
- ":raw_hash_set",
- "//absl/base",
- "//absl/base:config",
- "//absl/base:core_headers",
- "//absl/base:raw_logging_internal",
- "//absl/strings",
- "@com_google_googletest//:gtest_main",
- ],
- )
- cc_binary(
- name = "raw_hash_set_benchmark",
- testonly = 1,
- srcs = ["internal/raw_hash_set_benchmark.cc"],
- copts = ABSL_TEST_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- tags = ["benchmark"],
- visibility = ["//visibility:private"],
- deps = [
- ":hash_function_defaults",
- ":raw_hash_set",
- "//absl/base:raw_logging_internal",
- "//absl/strings:str_format",
- "@com_github_google_benchmark//:benchmark_main",
- ],
- )
- cc_binary(
- name = "raw_hash_set_probe_benchmark",
- testonly = 1,
- srcs = ["internal/raw_hash_set_probe_benchmark.cc"],
- copts = ABSL_TEST_COPTS,
- linkopts = select({
- "//conditions:default": [],
- }) + ABSL_DEFAULT_LINKOPTS,
- tags = ["benchmark"],
- visibility = ["//visibility:private"],
- deps = [
- ":flat_hash_map",
- ":hash_function_defaults",
- ":hashtable_debug",
- ":raw_hash_set",
- "//absl/random",
- "//absl/random:distributions",
- "//absl/strings",
- "//absl/strings:str_format",
- ],
- )
- cc_test(
- name = "raw_hash_set_allocator_test",
- size = "small",
- srcs = ["internal/raw_hash_set_allocator_test.cc"],
- copts = ABSL_TEST_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- deps = [
- ":raw_hash_set",
- ":tracked",
- "//absl/base:core_headers",
- "@com_google_googletest//:gtest_main",
- ],
- )
- cc_library(
- name = "layout",
- hdrs = ["internal/layout.h"],
- copts = ABSL_DEFAULT_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- deps = [
- "//absl/base:config",
- "//absl/base:core_headers",
- "//absl/meta:type_traits",
- "//absl/strings",
- "//absl/types:span",
- "//absl/utility",
- ],
- )
- cc_test(
- name = "layout_test",
- size = "small",
- srcs = ["internal/layout_test.cc"],
- copts = ABSL_TEST_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- tags = NOTEST_TAGS,
- visibility = ["//visibility:private"],
- deps = [
- ":layout",
- "//absl/base:config",
- "//absl/base:core_headers",
- "//absl/base:raw_logging_internal",
- "//absl/types:span",
- "@com_google_googletest//:gtest_main",
- ],
- )
- cc_binary(
- name = "layout_benchmark",
- testonly = 1,
- srcs = ["internal/layout_benchmark.cc"],
- copts = ABSL_TEST_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- tags = ["benchmark"],
- visibility = ["//visibility:private"],
- deps = [
- ":layout",
- "//absl/base:core_headers",
- "//absl/base:raw_logging_internal",
- "@com_github_google_benchmark//:benchmark_main",
- ],
- )
- cc_library(
- name = "tracked",
- testonly = 1,
- hdrs = ["internal/tracked.h"],
- copts = ABSL_TEST_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- deps = [
- "//absl/base:config",
- ],
- )
- cc_library(
- name = "unordered_map_constructor_test",
- testonly = 1,
- hdrs = ["internal/unordered_map_constructor_test.h"],
- copts = ABSL_TEST_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- deps = [
- ":hash_generator_testing",
- ":hash_policy_testing",
- "@com_google_googletest//:gtest",
- ],
- )
- cc_library(
- name = "unordered_map_lookup_test",
- testonly = 1,
- hdrs = ["internal/unordered_map_lookup_test.h"],
- copts = ABSL_TEST_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- deps = [
- ":hash_generator_testing",
- ":hash_policy_testing",
- "@com_google_googletest//:gtest",
- ],
- )
- cc_library(
- name = "unordered_map_modifiers_test",
- testonly = 1,
- hdrs = ["internal/unordered_map_modifiers_test.h"],
- copts = ABSL_TEST_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- deps = [
- ":hash_generator_testing",
- ":hash_policy_testing",
- "@com_google_googletest//:gtest",
- ],
- )
- cc_library(
- name = "unordered_set_constructor_test",
- testonly = 1,
- hdrs = ["internal/unordered_set_constructor_test.h"],
- copts = ABSL_TEST_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- deps = [
- ":hash_generator_testing",
- ":hash_policy_testing",
- "//absl/meta:type_traits",
- "@com_google_googletest//:gtest",
- ],
- )
- cc_library(
- name = "unordered_set_members_test",
- testonly = 1,
- hdrs = ["internal/unordered_set_members_test.h"],
- copts = ABSL_TEST_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- deps = [
- "//absl/meta:type_traits",
- "@com_google_googletest//:gtest",
- ],
- )
- cc_library(
- name = "unordered_map_members_test",
- testonly = 1,
- hdrs = ["internal/unordered_map_members_test.h"],
- copts = ABSL_TEST_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- deps = [
- "//absl/meta:type_traits",
- "@com_google_googletest//:gtest",
- ],
- )
- cc_library(
- name = "unordered_set_lookup_test",
- testonly = 1,
- hdrs = ["internal/unordered_set_lookup_test.h"],
- copts = ABSL_TEST_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- deps = [
- ":hash_generator_testing",
- ":hash_policy_testing",
- "@com_google_googletest//:gtest",
- ],
- )
- cc_library(
- name = "unordered_set_modifiers_test",
- testonly = 1,
- hdrs = ["internal/unordered_set_modifiers_test.h"],
- copts = ABSL_TEST_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- deps = [
- ":hash_generator_testing",
- ":hash_policy_testing",
- "@com_google_googletest//:gtest",
- ],
- )
- cc_test(
- name = "unordered_set_test",
- srcs = ["internal/unordered_set_test.cc"],
- copts = ABSL_TEST_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- tags = NOTEST_TAGS_NONMOBILE,
- deps = [
- ":unordered_set_constructor_test",
- ":unordered_set_lookup_test",
- ":unordered_set_members_test",
- ":unordered_set_modifiers_test",
- "@com_google_googletest//:gtest_main",
- ],
- )
- cc_test(
- name = "unordered_map_test",
- srcs = ["internal/unordered_map_test.cc"],
- copts = ABSL_TEST_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- tags = NOTEST_TAGS_NONMOBILE,
- deps = [
- ":unordered_map_constructor_test",
- ":unordered_map_lookup_test",
- ":unordered_map_members_test",
- ":unordered_map_modifiers_test",
- "@com_google_googletest//:gtest_main",
- ],
- )
- cc_test(
- name = "sample_element_size_test",
- srcs = ["sample_element_size_test.cc"],
- copts = ABSL_TEST_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- tags = NOTEST_TAGS_NONMOBILE,
- visibility = ["//visibility:private"],
- deps = [
- ":flat_hash_map",
- ":flat_hash_set",
- ":node_hash_map",
- ":node_hash_set",
- "@com_google_googletest//:gtest_main",
- ],
- )
- cc_library(
- name = "btree",
- srcs = [
- "internal/btree.h",
- "internal/btree_container.h",
- ],
- hdrs = [
- "btree_map.h",
- "btree_set.h",
- ],
- copts = ABSL_DEFAULT_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- visibility = ["//visibility:public"],
- deps = [
- ":common",
- ":compressed_tuple",
- ":container_memory",
- ":layout",
- "//absl/base:core_headers",
- "//absl/base:throw_delegate",
- "//absl/memory",
- "//absl/meta:type_traits",
- "//absl/strings",
- "//absl/strings:cord",
- "//absl/types:compare",
- "//absl/utility",
- ],
- )
- cc_library(
- name = "btree_test_common",
- testonly = 1,
- hdrs = ["btree_test.h"],
- copts = ABSL_TEST_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- visibility = ["//visibility:private"],
- deps = [
- ":btree",
- ":flat_hash_set",
- "//absl/strings",
- "//absl/strings:cord",
- "//absl/time",
- ],
- )
- cc_test(
- name = "btree_test",
- size = "large",
- srcs = [
- "btree_test.cc",
- ],
- copts = ABSL_TEST_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- shard_count = 10,
- visibility = ["//visibility:private"],
- deps = [
- ":btree",
- ":btree_test_common",
- ":counting_allocator",
- ":test_instance_tracker",
- "//absl/base:core_headers",
- "//absl/base:raw_logging_internal",
- "//absl/flags:flag",
- "//absl/hash:hash_testing",
- "//absl/memory",
- "//absl/meta:type_traits",
- "//absl/strings",
- "//absl/types:compare",
- "@com_google_googletest//:gtest_main",
- ],
- )
- cc_binary(
- name = "btree_benchmark",
- testonly = 1,
- srcs = [
- "btree_benchmark.cc",
- ],
- copts = ABSL_TEST_COPTS,
- linkopts = ABSL_DEFAULT_LINKOPTS,
- tags = ["benchmark"],
- visibility = ["//visibility:private"],
- deps = [
- ":btree",
- ":btree_test_common",
- ":flat_hash_map",
- ":flat_hash_set",
- ":hashtable_debug",
- "//absl/base:raw_logging_internal",
- "//absl/flags:flag",
- "//absl/hash",
- "//absl/memory",
- "//absl/strings:cord",
- "//absl/strings:str_format",
- "//absl/time",
- "@com_github_google_benchmark//:benchmark_main",
- ],
- )
|