rad 6.2.0
Loading...
Searching...
No Matches
Classes | Typedefs | Functions
testExecutorActivity.cpp File Reference
#include <future>
#include <chrono>
#include <thread>
#include <rad/assert.hpp>
#include <rad/executorActivity.hpp>
#include <gtest/gtest.h>
#include <gmock/gmock.h>
#include <boost/asio/io_context.hpp>

Classes

struct  MockFunc
 
struct  MockFuncBlock
 
class  TestExecutorActivity
 

Typedefs

using Executor = boost::asio::io_context::executor_type
 
using Func = std::reference_wrapper<MockFunc>
 
using FuncBlock = std::reference_wrapper<MockFuncBlock>
 

Functions

 TEST_F (TestExecutorActivity, Start)
 
 TEST_F (TestExecutorActivity, StopIfNotRunningDoesNothing)
 
 TEST_F (TestExecutorActivity, StopIfActivityIsAlreadyDone)
 
 TEST_F (TestExecutorActivity, StopWhenStopIsRequested)
 

Typedef Documentation

◆ Executor

using Executor = boost::asio::io_context::executor_type

◆ Func

using Func = std::reference_wrapper<MockFunc>

◆ FuncBlock

using FuncBlock = std::reference_wrapper<MockFuncBlock>

Function Documentation

◆ TEST_F() [1/4]

TEST_F ( TestExecutorActivity ,
Start  )

◆ TEST_F() [2/4]

TEST_F ( TestExecutorActivity ,
StopIfActivityIsAlreadyDone  )

◆ TEST_F() [3/4]

TEST_F ( TestExecutorActivity ,
StopIfNotRunningDoesNothing  )

◆ TEST_F() [4/4]

TEST_F ( TestExecutorActivity ,
StopWhenStopIsRequested  )