Go to the documentation of this file.
15 #include "absl/container/internal/hash_policy_traits.h"
21 #include "gmock/gmock.h"
22 #include "gtest/gtest.h"
26 namespace container_internal {
29 using ::testing::MockFunction;
33 using Alloc = std::allocator<int>;
36 struct PolicyWithoutOptionalOps {
37 using slot_type = Slot;
39 using init_type = Slot;
57 struct PolicyWithOptionalOps : PolicyWithoutOptionalOps {
90 MockFunction<void(
void*, Slot*, Slot)>
construct;
91 MockFunction<void(
void*, Slot*)>
destroy;
93 MockFunction<Slot&(Slot*)>
element;
95 MockFunction<Slot&(Slot*)>
value;
97 MockFunction<void(
void*, Slot*, Slot*)>
transfer;
void Test(StringPiece pattern, const RE2::Options &options, StringPiece text)
static std::function< Slot &(Slot *)> element
static std::function< Slot &(Slot *)> value
internal::ReturnAction< R > Return(R value)
static void destroy(Alloc *alloc, slot_type *slot)
static auto element(slot_type *slot) -> decltype(P::element(slot))
#define ABSL_NAMESPACE_END
internal::ReturnRefAction< R > ReturnRef(R &x)
static auto value(T *elem) -> decltype(P::value(elem))
#define ABSL_NAMESPACE_BEGIN
constexpr absl::remove_reference_t< T > && move(T &&t) noexcept
static std::function< int(int)> apply_impl
void * Alloc(FlagOpFn op)
static std::function< void(void *, Slot *, Slot *)> transfer
#define EXPECT_CALL(obj, call)
static std::function< void(void *, Slot *, Slot)> construct
static void construct(Alloc *alloc, slot_type *slot, Args &&... args)
static auto apply(F &&f, Ts &&... ts) -> decltype(P::apply(std::forward< F >(f), std::forward< Ts >(ts)...))
auto apply(Functor &&functor, Tuple &&t) -> decltype(utility_internal::apply_helper(absl::forward< Functor >(functor), absl::forward< Tuple >(t), absl::make_index_sequence< std::tuple_size< typename std::remove_reference< Tuple >::type >::value >
std::allocator< int > alloc
static std::function< void(void *, Slot *)> destroy
static void transfer(Alloc *alloc, slot_type *new_slot, slot_type *old_slot)
#define TEST_F(test_fixture, test_name)
grpc
Author(s):
autogenerated on Fri May 16 2025 02:59:00