Included testhooks.h from uipriv.h and test.h, to make things easier to write (we won't have to keep remembering to include it in every file) and to clean up (ditto, but for removal).

This commit is contained in:
Pietro Gagliardi 2020-05-22 16:32:04 -04:00
parent 6fe7c1ef66
commit 8db1d5474b
8 changed files with 2 additions and 6 deletions

View File

@ -1,6 +1,5 @@
// 8 june 2019 // 8 june 2019
#include "uipriv.h" #include "uipriv.h"
#include "testhooks.h"
struct controlType { struct controlType {
uint32_t id; uint32_t id;

View File

@ -1,6 +1,5 @@
// 12 may 2019 // 12 may 2019
#include "uipriv.h" #include "uipriv.h"
#include "testhooks.h"
#define internalErrorPrefix "libui internal error" #define internalErrorPrefix "libui internal error"
// TODO add debugging advice? // TODO add debugging advice?

View File

@ -1,6 +1,5 @@
// 19 april 2019 // 19 april 2019
#include "uipriv.h" #include "uipriv.h"
#include "testhooks.h"
enum { enum {
stateUninitialized, stateUninitialized,

View File

@ -9,6 +9,7 @@
#ifdef uiprivOSHeader #ifdef uiprivOSHeader
#include uiprivOSHeader #include uiprivOSHeader
#endif #endif
#include "testhooks.h"
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {

View File

@ -1,6 +1,5 @@
// 8 june 2019 // 8 june 2019
#include "test.h" #include "test.h"
#include "../common/testhooks.h"
static bool vtableNopInit(uiControl *c, void *implData, void *initData) static bool vtableNopInit(uiControl *c, void *implData, void *initData)
{ {

View File

@ -1,7 +1,6 @@
// 28 may 2019 // 28 may 2019
#include "test.h" #include "test.h"
#include "thread.h" #include "thread.h"
#include "../common/testhooks.h"
// Do not put any test cases in this file; they will not be run. // Do not put any test cases in this file; they will not be run.

View File

@ -1,7 +1,6 @@
// 10 april 2019 // 10 april 2019
#include "test.h" #include "test.h"
#include "thread.h" #include "thread.h"
#include "../common/testhooks.h"
static void testImplInitFailureFull(const char *file, long line) static void testImplInitFailureFull(const char *file, long line)
{ {

View File

@ -11,6 +11,7 @@
#ifdef libuiOSHeader #ifdef libuiOSHeader
#include libuiOSHeader #include libuiOSHeader
#endif #endif
#include "../common/testhooks.h"
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {