5 #ifndef _TEST_STATE_DATA_H_ 6 #define _TEST_STATE_DATA_H_ 8 #include <basicTypes.h> 18 uint32_t failCount = 0;
30 void Reset(
bool fillBuffer,
bool testInitiator );
32 void AdvanceState(
bool testInitiator );
37 inline void IncrementTestTime(
double incVal ){ totalTestTime += incVal; }
39 char dataBuffer[ BUFFER_SIZE ];
40 char baseBuffer[ BUFFER_SIZE ];
42 char* curBufPtr =
nullptr;
43 TestStates currentState = eTestInit;
44 double totalTestTime = 0.0;
53 void InitBuffer(
char* buf,
bool fill );
This is the main object that will keep track of overall test progress and results.
Definition: SerialToEtherThroughput/TestStateData.h:34
bool UpdateCurTestComplete()
Updates the data and averages associated with the overall set of tests that have been run...
Definition: SerialToEtherThroughput/TestStateData.cpp:115
void ReportCurTestData()
Prints out data associated with the current test.
Definition: SerialToEtherThroughput/TestStateData.cpp:99
This holds the cumulative results for a specific set of tests.
Definition: SerialToEtherThroughput/TestStateData.h:16
bool ValidateDataBuffer()
Validates if the data buffer used to receive and send data from matches our base data buffer...
Definition: SerialToEtherThroughput/TestStateData.cpp:78
void UpdateBufPtr(BufferObj &bufferObj)
Updates the current buffer pointer to the location where we are reading/writing the data...
Definition: SerialToEtherThroughput/TestStateData.cpp:68
void ReportTotalTestData()
Prints out the cumulative data for a specific test type.
Definition: SerialToEtherThroughput/TestStateData.cpp:143