NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
config_streamer_unittest.cc File Reference
#include <stdint.h>
#include "drivers/config_streamer.h"
#include "platform.h"
#include "unittest_macros.h"
#include "gtest/gtest.h"
Include dependency graph for config_streamer_unittest.cc:

Data Structures

struct  MockFlash
 

Functions

void FLASH_Unlock (void)
 
void FLASH_Lock (void)
 
FLASH_Status FLASH_ErasePage (uint32_t address)
 
FLASH_Status FLASH_ProgramWord (uint32_t address, uint32_t data)
 
config_streamer_t setup ()
 
 TEST (configStreamerTest, TestInit)
 
 TEST (configStreamerTest, TestWriteSmall)
 
 TEST (configStreamerTest, TestWriteCrossWord)
 
 TEST (configStreamerTest, TestWriteWordMultiple)
 
 TEST (configStreamerTest, TestWriteThreeChunks)
 

Function Documentation

FLASH_Status FLASH_ErasePage ( uint32_t  address)

Here is the call graph for this function:

void FLASH_Lock ( void  )
FLASH_Status FLASH_ProgramWord ( uint32_t  address,
uint32_t  data 
)

Here is the call graph for this function:

void FLASH_Unlock ( void  )
config_streamer_t setup ( )

Here is the call graph for this function:

TEST ( configStreamerTest  ,
TestInit   
)

Here is the call graph for this function:

TEST ( configStreamerTest  ,
TestWriteSmall   
)

Here is the call graph for this function:

TEST ( configStreamerTest  ,
TestWriteCrossWord   
)

Here is the call graph for this function:

TEST ( configStreamerTest  ,
TestWriteWordMultiple   
)

Here is the call graph for this function:

TEST ( configStreamerTest  ,
TestWriteThreeChunks   
)

Here is the call graph for this function: