Make Event and Loader/PRS1Loader protected and private members public during unit testing.

This commit is contained in:
sawinglogz 2019-05-04 21:50:45 -04:00
parent af375af090
commit d4b65d8e73
3 changed files with 15 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* SleepLib Event Class Header
/* SleepLib Event Class Header
*
* Copyright (C) 2011-2018 Mark Watkins <mark@jedimark.net>
*
@ -13,6 +13,11 @@
#include "machine_common.h"
#ifdef UNITTEST_MODE
#define private public
#define protected public
#endif
//! \brief EventLists can either be Waveform or Event types
enum EventListType { EVL_Waveform, EVL_Event };

View File

@ -15,6 +15,10 @@
#include "SleepLib/machine_loader.h"
#include "SleepLib/profiles.h"
#ifdef UNITTEST_MODE
#define private public
#define protected public
#endif
//********************************************************************************************
/// IMPORTANT!!!

View File

@ -1,4 +1,4 @@
/* SleepLib MachineLoader Base Class Header
/* SleepLib MachineLoader Base Class Header
*
* Copyright (c) 2018 Mark Watkins <mark@jedimark.net>
*
@ -22,6 +22,10 @@
#include "zlib.h"
#endif
#ifdef UNITTEST_MODE
#define private public
#define protected public
#endif
class MachineLoader;
enum DeviceStatus { NEUTRAL, IMPORTING, LIVE, DETECTING };