Audacity 3.2.0
|
#include <catch2/catch.hpp>
#include "SnapUtils.h"
#include "Project.h"
#include "ProjectTimeSignature.h"
#include "MockedAudio.h"
#include "MockedPrefs.h"
Go to the source code of this file.
Functions | |
void | TimeCase (const AudacityProject &project, const char *format, double time, double expected, bool nearest) |
void | BeatsCase (AudacityProject &project, const char *format, double time, double expected, bool nearest, int upper, int lower) |
void | TimeStepCase (const AudacityProject &project, const char *format, double time, double expected, bool upwards, bool successful) |
void | BarStepCase (AudacityProject &project, const char *format, double time, double expected, bool upwards) |
TEST_CASE ("Snapping", "") | |
void BarStepCase | ( | AudacityProject & | project, |
const char * | format, | ||
double | time, | ||
double | expected, | ||
bool | upwards | ||
) |
Definition at line 61 of file SnappingTest.cpp.
References anonymous_namespace{ExportPCM.cpp}::format, ProjectTimeSignature::Get(), project, and SnapFunctionsRegistry::SingleStep().
Referenced by TEST_CASE().
void BeatsCase | ( | AudacityProject & | project, |
const char * | format, | ||
double | time, | ||
double | expected, | ||
bool | nearest, | ||
int | upper, | ||
int | lower | ||
) |
Definition at line 30 of file SnappingTest.cpp.
References anonymous_namespace{ExportPCM.cpp}::format, ProjectTimeSignature::Get(), project, and SnapFunctionsRegistry::Snap().
Referenced by TEST_CASE().
TEST_CASE | ( | "Snapping" | , |
"" | |||
) |
Definition at line 79 of file SnappingTest.cpp.
References BarStepCase(), BeatsCase(), AudacityProject::Create(), project, SnapFunctionsRegistry::Snap(), TimeCase(), and TimeStepCase().
void TimeCase | ( | const AudacityProject & | project, |
const char * | format, | ||
double | time, | ||
double | expected, | ||
bool | nearest | ||
) |
Audacity: A Digital Audio Editor
Dmitry Vedenko
Definition at line 22 of file SnappingTest.cpp.
References anonymous_namespace{ExportPCM.cpp}::format, project, and SnapFunctionsRegistry::Snap().
Referenced by TEST_CASE().
void TimeStepCase | ( | const AudacityProject & | project, |
const char * | format, | ||
double | time, | ||
double | expected, | ||
bool | upwards, | ||
bool | successful | ||
) |
Definition at line 48 of file SnappingTest.cpp.
References anonymous_namespace{ExportPCM.cpp}::format, project, and SnapFunctionsRegistry::SingleStep().
Referenced by TEST_CASE().