Searched refs:container (Results 1 - 20 of 20) sorted by relevance

/fuchsia/zircon/system/utest/fbl/include/fbl/tests/intrusive_containers/
H A Dintrusive_doubly_linked_list_checker.h21 static bool SanityCheck(const ContainerType& container) { argument
26 typename PtrTraits::RawPtrType tmp = PtrTraits::GetRaw(container.head_);
31 ASSERT_EQ(container.sentinel(), tmp, "");
38 tmp = container.tail();
39 if (!PtrTraits::IsSentinel(container.head_)) {
43 ASSERT_EQ(container.sentinel(), tmp, "");
H A Dtest_environment_utils.h15 // A utility class used by container tests to move a pointer to an object into
16 // an instance of the container being tested. For sequenced containers, the
28 static void MoveInto(ContainerType& container, PtrType&& ptr) { argument
29 container.push_front(fbl::move(ptr));
39 static void MoveInto(ContainerType& container, PtrType&& ptr) { argument
40 container.insert(fbl::move(ptr));
50 static size_t size(const ContainerType& container) { return container.size(); } argument
57 static size_t size(const ContainerType& container) { return container argument
[all...]
H A Dbase_test_environments.h23 // TestEnvironmentBase is also where the default container storage lives.
172 bool ValidEraseTarget(size_t key) { return container().find(key).IsValid(); }
178 // Utility method for checking the size of the container via either size()
179 // or size_slow(), depending on whether or not the container supports a
182 static size_t Size(const CType& container) { argument
183 return SizeUtils<CType>::size(container);
186 // The default method for populating a container will depend on whether this
187 // is a sequence container or an associative container. Sequenced
191 virtual bool Populate(ContainerType& container, RefActio
947 ContainerType container; local
1219 ContainerType& container() { return this->container_; } function in namespace:fbl::tests
[all...]
H A Dsequence_container_test_environment.h31 // Utility method for checking the size of the container via either size()
32 // or size_slow(), depending on whether or not the container supports a
35 static size_t Size(const CType& container) { argument
36 return SizeUtils<CType>::size(container);
39 bool Populate(ContainerType& container, RefAction ref_action = RefAction::HoldSome) override {
46 EXPECT_EQ(i, Size(container), "");
76 container.push_front(new_object);
78 container.push_front(TestEnvTraits::Transfer(new_object));
82 container.push_front(fbl::move(new_object));
87 EXPECT_EQ(OBJ_COUNT, Size(container), "");
1107 ContainerType& container() { return this->container_; } function in class:fbl::tests::intrusive_containers::SequenceContainerTestEnvironment
[all...]
H A Dintrusive_hash_table_checker.h22 static bool SanityCheck(const ContainerType& container) { argument
35 ASSERT_TRUE(BucketChecker::SanityCheck(container.buckets_[i]), "");
36 total_size += SizeUtils<BucketType>::size(container.buckets_[i]);
40 for (const auto& obj : container.buckets_[i]) {
46 EXPECT_EQ(container.size(), total_size, "");
H A Dintrusive_singly_linked_list_checker.h21 static bool SanityCheck(const ContainerType& container) { argument
26 typename PtrTraits::RawPtrType tmp = PtrTraits::GetRaw(container.head_);
31 ASSERT_EQ(container.sentinel(), tmp, "");
H A Dassociative_container_test_environment.h45 // Utility method for checking the size of the container via either size()
46 // or size_slow(), depending on whether or not the container supports a
49 static size_t Size(const CType& container) { argument
50 return SizeUtils<CType>::size(container);
95 bool Populate(ContainerType& container, argument
103 EXPECT_EQ(i, Size(container), "");
140 container.insert(new_object);
142 container.insert(TestEnvTraits::Transfer(new_object));
146 container.insert(fbl::move(new_object));
151 EXPECT_EQ(OBJ_COUNT, Size(container), "");
463 ContainerType& container() { return this->container_; } function in class:fbl::tests::intrusive_containers::AssociativeContainerTestEnvironment
[all...]
H A Dordered_associative_container_test_environment.h44 typename ContainerTraits::ContainerType& container,
46 return container.upper_bound(key);
57 typename ContainerTraits::ContainerType& container,
59 return container.lower_bound(key);
70 ASSERT_TRUE(ACTE::Populate(container(), populate_method), "");
72 auto iter = container().begin();
107 ASSERT_TRUE(ACTE::Populate(container(), populate_method), "");
109 auto iter = container().end();
148 auto found = BoundTraits::Search(container(), 0u);
151 // Populate the container
43 Search( typename ContainerTraits::ContainerType& container, const KeyType& key) argument
56 Search( typename ContainerTraits::ContainerType& container, const KeyType& key) argument
246 ContainerType& container() { return this->container_; } function in class:fbl::tests::intrusive_containers::OrderedAssociativeContainerTestEnvironment
[all...]
/fuchsia/zircon/system/ulib/fbl/include/fbl/
H A Dintrusive_container_utils.h30 // was specified for the container.
32 // contained within a container.
43 // container key type, and must have definitions of the < and == operators for
73 static PtrType erase(ContainerType& container, ValueType& obj) { argument
74 return container.erase_if(
89 static PtrType erase(ContainerType& container, ValueType& obj) { argument
90 return container.erase(obj);
112 static PtrType erase(ContainerType& container, const KeyType& key) { argument
113 return container.erase_if(
129 static PtrType erase(ContainerType& container, cons argument
[all...]
/fuchsia/zircon/system/ulib/mdns/
H A Dinternal.h64 int unmarshal_header(const void* buf, mdns_header* container);
H A Dmdns.c201 mdns_message* container) {
205 mdns_init_message(container);
213 read_count += unmarshal_header(buf, &(container->header));
220 mdns_header* container) {
221 memcpy(container, buf, MDNS_HEADER_SIZE);
199 mdns_unmarshal(const void* buf, const size_t buf_len, mdns_message* container) argument
219 unmarshal_header(const void* buf, mdns_header* container) argument
/fuchsia/zircon/system/host/fvm/container/
H A Dcontainer.cpp9 #include "fvm/container.h"
12 uint32_t flags, fbl::unique_ptr<Container>* container) {
39 // Found fvm container
45 *container = fbl::move(fvmContainer);
56 // Found sparse container
64 *container = fbl::move(sparseContainer);
11 Create(const char* path, off_t offset, off_t length, uint32_t flags, fbl::unique_ptr<Container>* container) argument
/fuchsia/zircon/system/host/fvm/
H A Drules.mk13 $(LOCAL_DIR)/container/container.cpp \
14 $(LOCAL_DIR)/container/fvm.cpp \
15 $(LOCAL_DIR)/container/sparse.cpp \
H A Dmain.cpp11 #include "fvm/container.h"
22 fprintf(stderr, " extend : Extends an FVM container to the specified size (length is"
31 fprintf(stderr, " --offset [bytes] - offset at which container begins (fvm only)\n");
32 fprintf(stderr, " --length [bytes] - length of container within file (fvm only)\n");
44 int add_partitions(Container* container, int argc, char** argv) { argument
52 if ((container->AddPartition(partition_path, partition_type)) != ZX_OK) {
/fuchsia/zircon/system/utest/fvm-host/
H A Drules.mk13 system/host/fvm/container/container.cpp \
14 system/host/fvm/container/fvm.cpp \
15 system/host/fvm/container/sparse.cpp \
H A Dmain.cpp7 #include <fvm/container.h>
39 SPARSE, // Sparse container
40 SPARSE_LZ4, // Sparse container compressed with LZ4
41 SPARSE_ZXCRYPT, // Sparse,container to be stored on a zxcrypt volume
42 FVM, // Explicitly created FVM container
43 FVM_NEW, // FVM container created on FvmContainer::Create
44 FVM_OFFSET, // FVM container created at an offset within a file
120 bool AddPartitions(Container* container) { argument
123 // Randomize order in which partitions are added to container.
146 unittest_printf("Adding partition to container
178 fbl::unique_ptr<Container> container; local
[all...]
/fuchsia/zircon/system/ulib/mdns/include/mdns/
H A Dmdns.h150 // mdns_message container which is zeroed before writing via mdns_init_message.
160 mdns_message* container);
/fuchsia/zircon/kernel/target/arm64/boot-shim/
H A Dboot-shim.c27 static void append_boot_item(zbi_header_t* container, argument
31 container, SIZE_MAX, length, type, extra, 0, payload);
38 static void append_board_boot_item(zbi_header_t* container);
249 uart_puts("ZBI container length 0x");
253 uart_puts("ZBI container ends 0x");
342 // Length of the ZBI container, including header, without kernel.
360 // Fix up the kernel's solo container size.
364 // container header to exclude the kernel.
373 uart_puts("\nKernel container length ");
375 uart_puts(" ZBI container lengt
[all...]
/fuchsia/zircon/system/utest/libfzl/
H A Dvmo-vmar-tests.cpp27 bool contained_in(const T& contained, const U& container) { argument
30 uintptr_t container_start = reinterpret_cast<uintptr_t>(container.start());
31 uintptr_t container_end = container_start + container.size();
/fuchsia/zircon/system/core/devmgr/
H A Drules.mk67 # fshost - container for filesystems
116 # devhost - container for drivers

Completed in 115 milliseconds