mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-20 00:05:41 -05:00
Adapt to enable testing and add more tests
This commit is contained in:
86
tests/stubs/plugin-state-helpers.cpp
Normal file
86
tests/stubs/plugin-state-helpers.cpp
Normal file
@@ -0,0 +1,86 @@
|
||||
#include "plugin-state-helpers.hpp"
|
||||
|
||||
namespace advss {
|
||||
|
||||
void SavePluginSettings(obs_data_t *) {}
|
||||
void LoadPluginSettings(obs_data_t *) {}
|
||||
void AddSaveStep(std::function<void(obs_data_t *)>) {}
|
||||
void AddLoadStep(std::function<void(obs_data_t *)>) {}
|
||||
void AddPostLoadStep(std::function<void()>) {}
|
||||
void AddIntervalResetStep(std::function<void()>) {}
|
||||
void RunSaveSteps(obs_data_t *) {}
|
||||
void RunLoadSteps(obs_data_t *) {}
|
||||
void RunAndClearPostLoadSteps() {}
|
||||
void ClearPostLoadSteps() {}
|
||||
|
||||
void AddPluginInitStep(std::function<void()>) {}
|
||||
void AddPluginPostLoadStep(std::function<void()>) {}
|
||||
void AddPluginCleanupStep(std::function<void()>) {}
|
||||
void RunPluginInitSteps() {}
|
||||
void RunPluginPostLoadSteps() {}
|
||||
void RunPluginCleanupSteps() {}
|
||||
|
||||
void StopPlugin() {}
|
||||
void StartPlugin() {}
|
||||
bool PluginIsRunning()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
int GetIntervalValue()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
void AddStartStep(std::function<void()>) {}
|
||||
void AddStopStep(std::function<void()>) {}
|
||||
void RunStartSteps() {}
|
||||
void RunStopSteps() {}
|
||||
void RunIntervalResetSteps() {}
|
||||
|
||||
void SetPluginNoMatchBehavior(NoMatchBehavior) {}
|
||||
NoMatchBehavior GetPluginNoMatchBehavior()
|
||||
{
|
||||
return NoMatchBehavior::NO_SWITCH;
|
||||
}
|
||||
void SetNoMatchScene(const OBSWeakSource &) {}
|
||||
|
||||
std::string ForegroundWindowTitle()
|
||||
{
|
||||
return "";
|
||||
}
|
||||
std::string PreviousForegroundWindowTitle()
|
||||
{
|
||||
return "";
|
||||
}
|
||||
bool SettingsWindowIsOpened()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
bool HighlightUIElementsEnabled()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
bool OBSIsShuttingDown()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
bool InitialLoadIsComplete()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
bool IsFirstInterval()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
bool IsFirstIntervalAfterStop()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
void SetMacroHighlightingEnabled(bool) {}
|
||||
bool IsMacroHighlightingEnabled()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
} // namespace advss
|
||||
Reference in New Issue
Block a user