RTC Toolkit 5.1.0
Loading...
Searching...
No Matches
Classes | Functions | Variables
helpers.hpp File Reference

Helper stuff for unit tests. More...

#include <chrono>
#include <condition_variable>
#include <functional>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <rtctk/componentFramework/componentMetricsIf.hpp>
#include <rtctk/componentFramework/dataPointRecordingUnit.hpp>
#include <rtctk/componentFramework/eventServiceIf.hpp>
#include <rtctk/componentFramework/recordingUnit.hpp>
#include <rtctk/componentFramework/test/fakeComponentMetrics.hpp>
#include <rtctk/componentFramework/test/fakeOldbIf.hpp>
#include <rtctk/componentFramework/test/fakeRuntimeRepoIf.hpp>
#include <rtctk/componentFramework/test/mockRepository.hpp>
#include <iostream>
#include <memory>
#include <mutex>
#include <stdexcept>

Go to the source code of this file.

Classes

class  FakeRecorder< T >
 
class  MockEventPublisher
 
class  MockEventSubscriber
 
class  MockEventService
 
struct  FakeServices
 

Functions

void AwaitState (RecordingUnit &unit, RecordingUnit::State state, std::chrono::milliseconds timeout=std::chrono::milliseconds{5000})
 
 ACTION (Throw)
 

Variables

void * rec_ptr
 

Detailed Description

Helper stuff for unit tests.

Function Documentation

◆ ACTION()

ACTION ( Throw )

◆ AwaitState()

void AwaitState ( RecordingUnit & unit,
RecordingUnit::State state,
std::chrono::milliseconds timeout = std::chrono::milliseconds{5000} )
inline

Variable Documentation

◆ rec_ptr

void* rec_ptr
extern