template <typename TestEnvTraits>

class AssociativeContainerTestEnvironment

Defined at line 23 of file ../../src/lib/fidl/llcpp/tests/dispatcher/intrusive_container/associative_container_test_environment.h

AssociativeContainerTestEnvironment

<

>

Test environment which defines and implements tests and test utilities which

are applicable to all associative containers such as trees and hash-tables.

Public Members

static const KeyType kBannedKeyValue
static const OtherKeyType kBannedOtherKeyValue

Protected Members

Lfsr<KeyType> key_lfsr_
Lfsr<OtherKeyType> other_key_lfsr_
KeyType max_key_
static const size_t OBJ_COUNT
static const size_t EVEN_OBJ_COUNT
static const size_t ODD_OBJ_COUNT

Public Methods

template <typename CType>
size_t Size (const CType & container)

Utility method for checking the size of the container via either size()

or size_slow(), depending on whether or not the container supports a

constant order size operation.

Defined at line 52 of file ../../src/lib/fidl/llcpp/tests/dispatcher/intrusive_container/associative_container_test_environment.h

void SetTestObjKeys (const PtrType & test_obj, PopulateMethod method)

Defined at line 56 of file ../../src/lib/fidl/llcpp/tests/dispatcher/intrusive_container/associative_container_test_environment.h

void Populate (ContainerType & container, PopulateMethod method, RefAction ref_action)

Defined at line 94 of file ../../src/lib/fidl/llcpp/tests/dispatcher/intrusive_container/associative_container_test_environment.h

void Populate (ContainerType & container, RefAction ref_action)

Defined at line 154 of file ../../src/lib/fidl/llcpp/tests/dispatcher/intrusive_container/associative_container_test_environment.h

void DoInsertByKey (PopulateMethod populate_method)

Defined at line 158 of file ../../src/lib/fidl/llcpp/tests/dispatcher/intrusive_container/associative_container_test_environment.h

void InsertByKey ()

Defined at line 163 of file ../../src/lib/fidl/llcpp/tests/dispatcher/intrusive_container/associative_container_test_environment.h

void DoFindByKey (PopulateMethod populate_method)

Defined at line 174 of file ../../src/lib/fidl/llcpp/tests/dispatcher/intrusive_container/associative_container_test_environment.h

void FindByKey ()

Defined at line 196 of file ../../src/lib/fidl/llcpp/tests/dispatcher/intrusive_container/associative_container_test_environment.h

void DoEraseByKey (PopulateMethod populate_method, size_t already_erased)

Defined at line 207 of file ../../src/lib/fidl/llcpp/tests/dispatcher/intrusive_container/associative_container_test_environment.h

void EraseByKey ()

Defined at line 253 of file ../../src/lib/fidl/llcpp/tests/dispatcher/intrusive_container/associative_container_test_environment.h

void DoInsertOrFind (PopulateMethod populate_method, size_t already_destroyed)

Defined at line 259 of file ../../src/lib/fidl/llcpp/tests/dispatcher/intrusive_container/associative_container_test_environment.h

void InsertOrFind ()

Defined at line 376 of file ../../src/lib/fidl/llcpp/tests/dispatcher/intrusive_container/associative_container_test_environment.h

template <typename CopyOrMoveUtil>
void DoInsertOrReplace (size_t extra_elements, size_t already_destroyed)

Defined at line 384 of file ../../src/lib/fidl/llcpp/tests/dispatcher/intrusive_container/associative_container_test_environment.h

void InsertOrReplace ()

Defined at line 439 of file ../../src/lib/fidl/llcpp/tests/dispatcher/intrusive_container/associative_container_test_environment.h

Protected Methods

ContainerType & container ()

Defined at line 460 of file ../../src/lib/fidl/llcpp/tests/dispatcher/intrusive_container/associative_container_test_environment.h

const ContainerType & const_container ()

Defined at line 461 of file ../../src/lib/fidl/llcpp/tests/dispatcher/intrusive_container/associative_container_test_environment.h

ObjType ** objects ()

Defined at line 462 of file ../../src/lib/fidl/llcpp/tests/dispatcher/intrusive_container/associative_container_test_environment.h

size_t & refs_held ()

Defined at line 463 of file ../../src/lib/fidl/llcpp/tests/dispatcher/intrusive_container/associative_container_test_environment.h

void ReleaseObject (size_t ndx)

Defined at line 465 of file ../../src/lib/fidl/llcpp/tests/dispatcher/intrusive_container/associative_container_test_environment.h

bool HoldingObject (size_t ndx)

Defined at line 466 of file ../../src/lib/fidl/llcpp/tests/dispatcher/intrusive_container/associative_container_test_environment.h

Enumerations

enum PopulateMethod
Name Value
AscendingKey 0
DescendingKey 0
RandomKey 0

Defined at line 39 of file ../../src/lib/fidl/llcpp/tests/dispatcher/intrusive_container/associative_container_test_environment.h

Records