KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_throttle.cpp File Reference
#include <qa_utils/wx_utils/unit_test_utils.h>
#include <core/throttle.h>
#include <widgets/wx_progress_reporters.h>
#include <thread>

Go to the source code of this file.

Functions

 BOOST_AUTO_TEST_CASE (FirstCallAlwaysReady)
 
 BOOST_AUTO_TEST_CASE (SecondCallRejectsWithinInterval)
 
 BOOST_AUTO_TEST_CASE (ReadyAgainAfterInterval)
 
 BOOST_AUTO_TEST_CASE (ProgressReporterGatingThrottlesBulkCalls)
 
 BOOST_AUTO_TEST_CASE (ProgressReporterGatingAlwaysRefreshesFinalTick)
 
 BOOST_AUTO_TEST_CASE (ProgressReporterGatingThrottlesPhaseBoundaries)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/6]

BOOST_AUTO_TEST_CASE ( FirstCallAlwaysReady )

Definition at line 30 of file test_throttle.cpp.

References BOOST_AUTO_TEST_CASE(), and THROTTLE::Ready().

◆ BOOST_AUTO_TEST_CASE() [2/6]

BOOST_AUTO_TEST_CASE ( ProgressReporterGatingAlwaysRefreshesFinalTick )

Definition at line 74 of file test_throttle.cpp.

References WX_PROGRESS_REPORTER::shouldRefresh().

◆ BOOST_AUTO_TEST_CASE() [3/6]

BOOST_AUTO_TEST_CASE ( ProgressReporterGatingThrottlesBulkCalls )

Definition at line 56 of file test_throttle.cpp.

References BOOST_CHECK_EQUAL(), and WX_PROGRESS_REPORTER::shouldRefresh().

◆ BOOST_AUTO_TEST_CASE() [4/6]

BOOST_AUTO_TEST_CASE ( ProgressReporterGatingThrottlesPhaseBoundaries )

Definition at line 89 of file test_throttle.cpp.

References WX_PROGRESS_REPORTER::shouldRefresh().

◆ BOOST_AUTO_TEST_CASE() [5/6]

BOOST_AUTO_TEST_CASE ( ReadyAgainAfterInterval )

Definition at line 45 of file test_throttle.cpp.

References THROTTLE::Ready().

◆ BOOST_AUTO_TEST_CASE() [6/6]

BOOST_AUTO_TEST_CASE ( SecondCallRejectsWithinInterval )

Definition at line 37 of file test_throttle.cpp.

References THROTTLE::Ready().