Home
last modified time | relevance | path

Searched refs:FlashError (Results 1 – 5 of 5) sorted by relevance

/external/pigweed/pw_kvs/public/pw_kvs/
Dfake_flash_memory.h28 class FlashError {
34 static constexpr FlashError Unconditional(Status status,
37 return FlashError(status, kAnyAddress, 0, times, delay);
41 static constexpr FlashError InRange(Status status,
46 return FlashError(status, address, size, times, delay);
53 static Status Check(std::span<FlashError> errors,
58 constexpr FlashError(Status status, in FlashError() function
92 Vector<FlashError>& read_errors = no_errors_,
93 Vector<FlashError>& write_errors = no_errors_)
124 bool InjectReadError(const FlashError& error) { in InjectReadError()
[all …]
/external/pigweed/pw_kvs/
Dfake_flash_memory.cc25 Status FlashError::Check(std::span<FlashError> errors, in Check()
37 Status FlashError::Check(FlashMemory::Address start_address, size_t size) { in Check()
89 Status status = FlashError::Check(read_errors_, address, output.size()); in Read()
131 Status status = FlashError::Check(write_errors_, address, data.size()); in Write()
Dkey_value_store_binary_format_test.cc253 FlashError::InRange(Status::Unauthenticated(), kEntry1.size())); in TEST_F()
356 flash_.InjectWriteError(FlashError::Unconditional(Status::Unavailable(), 1)); in TEST_F()
466 FlashError::InRange(Status::Unauthenticated(), kEntry1.size())); in TEST_F()
576 flash_.InjectWriteError(FlashError::Unconditional(Status::Unavailable(), 1)); in TEST_F()
739 flash_.InjectReadError(FlashError::Unconditional(Status::Internal(), 2)); in TEST_F()
741 flash_.InjectReadError(FlashError::Unconditional(Status::Internal(), 1, 7)); in TEST_F()
760 flash_.InjectWriteError(FlashError::Unconditional(Status::Internal(), 1, 1)); in TEST_F()
Dentry_test.cc348 flash_.InjectReadError(FlashError::Unconditional(Status::Aborted())); in TEST_F()
360 flash_.InjectReadError(FlashError::Unconditional(Status::Aborted())); in TEST_F()
376 flash_.InjectReadError(FlashError::Unconditional(Status::Unimplemented())); in TEST_F()
578 flash_.InjectWriteError(FlashError::Unconditional(Status::Cancelled())); in TEST_F()
Dentry_cache_test.cc332 flash_.InjectReadError(FlashError::Unconditional(Status::Internal(), 2)); in TEST_F()
347 flash_.InjectReadError(FlashError::Unconditional(Status::Internal(), 4)); in TEST_F()