KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_dialog_shim.cpp File Reference
#include <boost/test/unit_test.hpp>
#include <dialog_shim.h>
#include <wx/display.h>
#include <wx/textctrl.h>

Go to the source code of this file.

Macros

#define BOOST_TEST_NO_MAIN
 
#define SKIP_IF_HEADLESS()
 

Functions

static bool IsDisplayAvailable ()
 
 BOOST_AUTO_TEST_CASE (OptOutControlNotRestored)
 
 BOOST_AUTO_TEST_CASE (OptOutControlNotSaved)
 

Macro Definition Documentation

◆ BOOST_TEST_NO_MAIN

#define BOOST_TEST_NO_MAIN

Definition at line 20 of file test_dialog_shim.cpp.

◆ SKIP_IF_HEADLESS

#define SKIP_IF_HEADLESS ( )
Value:
do \
{ \
if( !IsDisplayAvailable() ) \
{ \
BOOST_TEST_MESSAGE( "Skipping test - no display available" ); \
return; \
} \
} while( 0 )
static bool IsDisplayAvailable()
Check if a display is available for clipboard operations.

Definition at line 37 of file test_dialog_shim.cpp.

Referenced by BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/2]

BOOST_AUTO_TEST_CASE ( OptOutControlNotRestored )

◆ BOOST_AUTO_TEST_CASE() [2/2]

BOOST_AUTO_TEST_CASE ( OptOutControlNotSaved )

Definition at line 110 of file test_dialog_shim.cpp.

References BOOST_CHECK_EQUAL(), and SKIP_IF_HEADLESS.

◆ IsDisplayAvailable()

static bool IsDisplayAvailable ( )
static

Definition at line 29 of file test_dialog_shim.cpp.