mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
The changes made in this commit do not affect any actual code,
they are purely aesthetic. I ran clang-format with google style
over all .h/.cpp files in wpilibc that weren't in wpilibC++Sim
or gtest, and the eclipse formatter over all of the Java files
using the Google eclipse formatting configuration.
Change-Id: I9627bca0bc103c398ecc1c5ba17467193291ae63
36 lines
857 B
C++
36 lines
857 B
C++
#pragma once
|
|
|
|
#include "WPILib.h"
|
|
|
|
class MockCommand : public Command {
|
|
private:
|
|
int m_initializeCount;
|
|
int m_executeCount;
|
|
int m_isFinishedCount;
|
|
bool m_hasFinished;
|
|
int m_endCount;
|
|
int m_interruptedCount;
|
|
|
|
protected:
|
|
virtual void Initialize();
|
|
virtual void Execute();
|
|
virtual bool IsFinished();
|
|
virtual void End();
|
|
virtual void Interrupted();
|
|
|
|
public:
|
|
MockCommand();
|
|
int GetInitializeCount() { return m_initializeCount; }
|
|
bool HasInitialized();
|
|
|
|
int GetExecuteCount() { return m_executeCount; }
|
|
int GetIsFinishedCount() { return m_isFinishedCount; }
|
|
bool IsHasFinished() { return m_hasFinished; }
|
|
void SetHasFinished(bool hasFinished) { m_hasFinished = hasFinished; }
|
|
int GetEndCount() { return m_endCount; }
|
|
bool HasEnd();
|
|
|
|
int GetInterruptedCount() { return m_interruptedCount; }
|
|
bool HasInterrupted();
|
|
};
|