|
RTC Toolkit
0.1.0-alpha
|
Unit tests for OperationalLogic. More...
#include <atomic>#include <condition_variable>#include <future>#include <gtest/gtest.h>#include <thread>#include "mockCorrelatorIf.hpp"#include "mockShmPublisherIf.hpp"#include <rtctk/telSub/operationalLogic.hpp>Classes | |
| class | TestOperationalLogic |
Functions | |
| bool | WaitFor (std::atomic< unsigned > &value, unsigned target, std::chrono::milliseconds timeout) |
| TEST (TestOperationalLogicLifecycle, ConstructionDestruction) | |
| TEST_F (TestOperationalLogic, IdlingWillNotWriteToShm) | |
| TEST_F (TestOperationalLogic, CorrelationErrorsAreIgnoredWhileIdle) | |
| TEST_F (TestOperationalLogic, ShmWriteErrorsAreCounted) | |
| TEST_F (TestOperationalLogic, ShmNotWrittenIfCorrelationErrorsHappenInRun) | |
| TEST_F (TestOperationalLogic, RunAsyncWillPollCorrelatorAndWriteToShm) | |
| TEST_F (TestOperationalLogic, IdleAsyncWillStopWritingToShm) | |
Unit tests for OperationalLogic.
| TEST | ( | TestOperationalLogicLifecycle | , |
| ConstructionDestruction | |||
| ) |
| TEST_F | ( | TestOperationalLogic | , |
| CorrelationErrorsAreIgnoredWhileIdle | |||
| ) |
| TEST_F | ( | TestOperationalLogic | , |
| IdleAsyncWillStopWritingToShm | |||
| ) |
Test that runs and then idles.
| TEST_F | ( | TestOperationalLogic | , |
| IdlingWillNotWriteToShm | |||
| ) |
| TEST_F | ( | TestOperationalLogic | , |
| RunAsyncWillPollCorrelatorAndWriteToShm | |||
| ) |
| TEST_F | ( | TestOperationalLogic | , |
| ShmNotWrittenIfCorrelationErrorsHappenInRun | |||
| ) |
| TEST_F | ( | TestOperationalLogic | , |
| ShmWriteErrorsAreCounted | |||
| ) |
| bool WaitFor | ( | std::atomic< unsigned > & | value, |
| unsigned | target, | ||
| std::chrono::milliseconds | timeout | ||
| ) |