dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
unittest.cpp File Reference
#include "gtest/gtest.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include "pios_flash.h"
#include "pios_flash_priv.h"
#include "pios_flash_posix_priv.h"
#include "pios_flashfs_logfs_priv.h"
#include "pios_flashfs.h"

Go to the source code of this file.

Data Structures

class  LogfsTestRaw
 
class  LogfsTestCooked
 
class  LogfsTestCookedMultiPart
 

Macros

#define OBJ0_ID   0xAA55AA55
 
#define OBJ1_ID   0x12345678
 
#define OBJ1_SIZE   76
 
#define OBJ2_ID   0xABCDEFAB
 
#define OBJ2_SIZE   123
 
#define OBJ3_ID   0x99999999
 
#define OBJ3_SIZE   (256 - 12)
 
#define OBJ4_ID   0x90901111
 
#define OBJ4_SIZE   (768)
 

Functions

 TEST_F (LogfsTestRaw, FlashInit)
 
 TEST_F (LogfsTestRaw, LogfsInit)
 
 TEST_F (LogfsTestCooked, BadIdLogfsFormat)
 
 TEST_F (LogfsTestCooked, BadIdSave)
 
 TEST_F (LogfsTestCooked, BadIdLoad)
 
 TEST_F (LogfsTestCooked, LogfsFormat)
 
 TEST_F (LogfsTestCooked, WriteOne)
 
 TEST_F (LogfsTestCooked, WriteVerifyOne)
 
 TEST_F (LogfsTestCooked, WriteVerifyDeleteVerifyOne)
 
 TEST_F (LogfsTestCooked, WriteTwoVerifyOneA)
 
 TEST_F (LogfsTestCooked, WriteTwoVerifyOneB)
 
 TEST_F (LogfsTestCooked, WriteZeroSize)
 
 TEST_F (LogfsTestCooked, WriteVerifyZeroLength)
 
 TEST_F (LogfsTestCooked, WriteMaxSize)
 
 TEST_F (LogfsTestCooked, ReadNonexistent)
 
 TEST_F (LogfsTestCooked, WriteVerifyMultiInstance)
 
 TEST_F (LogfsTestCooked, FillFilesystemAndGarbageCollect)
 
 TEST_F (LogfsTestCooked, WriteManyVerify)
 
 TEST_F (LogfsTestCookedMultiPart, WriteOneWriteOneVerify)
 
 TEST_F (LogfsTestCookedMultiPart, WriteOneWriteOneFormatOneVerify)
 
 TEST_F (LogfsTestCookedMultiPart, WriteOneWriteOneNoCross)
 
 TEST_F (LogfsTestCookedMultiPart, WriteOneWriteOneDeleteOne)
 
 TEST_F (LogfsTestCookedMultiPart, WriteLarge)
 

Variables

const struct pios_flash_partition pios_flash_partition_table []
 
uint32_t pios_flash_partition_table_size
 
uintptr_t pios_posix_flash_id
 
struct pios_flash_posix_cfg flash_config
 
struct flashfs_logfs_cfg flashfs_config_settings
 
struct flashfs_logfs_cfg flashfs_config_waypoints