Skip to content

WilliamClements/CppPlayer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CppPlayer

Header-only library - API adapter for Playback-Based Testing

Steps to integrate CppPlayer:

  1. Derive your operational base class from IOperational.
  2. Insert following static method into that base class declaration.
   static inline CallMap& libraryCallMap()
   {
      static CallMap yourCallmap;
      return yourCallmap;
   }
  1. To wrap each of your business objects, derive a class from your operational base class.
  2. Derive your main business object from IMain.
  3. Instrument your business object wrappers.

The framework requires that wrapper objects instantiate using std::shared_ptr

Instrumentation:

  1. From each instrumented API, invoke recordFunction at the end.
  2. (Or recordMethod if function returns void).
  3. Declare and implement a playback method.

Samples

IHFDM sample (does not compile)

About

Header-only library - API adapter for Playback-Based Testing

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors