Class · aurore::test

aurore::test::Harness

On this page
aurore/test/harness.hpp
#include <aurore/test/harness.hpp>

class aurore::test::Harness

Constructors 3

explicit Harness(Options options = Options())
~Harness()
Harness(const Harness &) =delete

Functions 45

Harness & operator=(const Harness &) =delete
const Options & options() const
HeadlessPlatform * platform()
void push(Activity *activity,TransitionAnimation animation = TransitionAnimation::NONE)
Activity * top()
View * find(const std::string &id)
void step(int count = 1)
void advance(double ms)
bool settle(double maxMs = 5000)
Time now() const
uint64_t frameCount() const
void press(ControllerButton button)
void release(ControllerButton button)
void tap(ControllerButton button, int times = 1)
void hold(ControllerButton button, double ms)
void setAxis(ControllerAxis axis, float value)
void pressKey(AuroreKeyboardScancode key)
void releaseKey(AuroreKeyboardScancode key)
void tapKey(AuroreKeyboardScancode key, int times = 1)
void touchDown(float x, float y, int finger = 0)
void touchMove(float x, float y, int finger = 0)
void touchUp(int finger = 0)
void tapAt(float x, float y)
bool tapView(View *view)
void swipe(float fromX,float fromY,float toX,float toY,double ms = 200)
void mouseMove(float x, float y)
void mouseClick(float x, float y)
void mouseQuickClick(float x, float y)
void mouseScroll(float dx, float dy)
void setKeyboardAnswer(const std::string &text)
View * focus()
std::string focusText()
const std::vector< std::string > & focusLog() const
void clearFocusLog()
bool focusByText(const std::string &text,ControllerButton button = BUTTON_DOWN,int maxSteps = 30)
std::vector< std::string > cutTexts()
std::vector< std::string > texts()
bool hasText(const std::string &text)
View * findText(const std::string &text)
std::vector< std::string > silentFocusables()
Image screenshot()
bool matchesReference(const std::string &name,int tolerance = 8,double maxRatio = 0.001)
bool matchesReference(const std::string &name,const Rect &area,int tolerance = 8,double maxRatio = 0.001)
const ImageDiff & lastDiff() const
void resize(int width, int height)

Read from Aurore's headers by Doxygen at each build · library/include