theCore C++ embedded framework
shared_unit.cpp File Reference
#include "memory.hpp"
#include <cstdlib>
#include <map>
#include <iostream>
#include <algorithm>
#include <CppUTest/TestHarness.h>
#include <CppUTest/CommandLineTestRunner.h>
#include <CppUTestExt/MockSupport.h>
Include dependency graph for shared_unit.cpp:

Data Structures

struct  dummy_type
 
struct  chunk_info
 
struct  dummy_allocator< T >
 

Functions

 TEST_GROUP (empty_shared)
 
 TEST (empty_shared, default_constructed)
 
 TEST (empty_shared, constructed_from_empty_pointer)
 
 TEST (empty_shared, moved_from_empty_poitner)
 
 TEST (empty_shared, assigned_empty_to_empty)
 
 TEST_GROUP (basic_shared)
 
 TEST (basic_shared, create_destroy)
 
 TEST (basic_shared, copy_constructed)
 
 TEST (basic_shared, assigned)
 
 TEST (basic_shared, move_constructed)
 
 TEST (basic_shared, move_assigned)
 
int main (int argc, char *argv[])
 

Variables

static std::map< void *, chunk_infoallocations
 
static dummy_allocator< dummy_typealloc
 

Function Documentation

◆ TEST_GROUP() [1/2]

TEST_GROUP ( empty_shared  )
Here is the call graph for this function:

◆ TEST() [1/9]

TEST ( empty_shared  ,
default_constructed   
)
Here is the call graph for this function:

◆ TEST() [2/9]

TEST ( empty_shared  ,
constructed_from_empty_pointer   
)
Here is the call graph for this function:

◆ TEST() [3/9]

TEST ( empty_shared  ,
moved_from_empty_poitner   
)
Here is the call graph for this function:

◆ TEST() [4/9]

TEST ( empty_shared  ,
assigned_empty_to_empty   
)
Here is the call graph for this function:

◆ TEST_GROUP() [2/2]

TEST_GROUP ( basic_shared  )
Here is the call graph for this function:

◆ TEST() [5/9]

TEST ( basic_shared  ,
create_destroy   
)

◆ TEST() [6/9]

TEST ( basic_shared  ,
copy_constructed   
)
Here is the call graph for this function:

◆ TEST() [7/9]

TEST ( basic_shared  ,
assigned   
)
Here is the call graph for this function:

◆ TEST() [8/9]

TEST ( basic_shared  ,
move_constructed   
)
Here is the call graph for this function:

◆ TEST() [9/9]

TEST ( basic_shared  ,
move_assigned   
)
Here is the call graph for this function:

◆ main()

int main ( int  argc,
char *  argv[] 
)

Variable Documentation

◆ allocations

std::map< void*, chunk_info > allocations
static

◆ alloc

dummy_allocator< dummy_type > alloc
static