[ion] Fix coputation of Record name crc32

This commit is contained in:
Léa Saviot
2018-09-27 18:38:03 +02:00
committed by Émilie Feral
parent ccbcf18811
commit 1fe6881171
4 changed files with 42 additions and 26 deletions

View File

@@ -10,6 +10,15 @@ Storage::Record::ErrorStatus putRecordInSharedStorage(const char * baseName, con
return Storage::sharedStorage()->createRecordWithExtension(baseName, extension, data, dataSize);
}
QUIZ_CASE(ion_storage_records_crc32) {
const char * baseNameRecord = "ionTestStorage";
const char * extensionRecord = "record1";
const char * fullNameRecord = "ionTestStorage.record1";
Storage::Record a(baseNameRecord, extensionRecord);
Storage::Record b(fullNameRecord);
quiz_assert(a==b);
}
QUIZ_CASE(ion_storage_store_and_destroy_record) {
size_t initialStorageAvailableStage = Storage::sharedStorage()->availableSize();