Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
zrythm::structure::project::ProjectSerializationTest Class Reference

Fixture for testing Project serialization with a minimal Project setup. More...

#include <tests/unit/structure/project/project_json_serializer_test.h>

Inheritance diagram for zrythm::structure::project::ProjectSerializationTest:
Collaboration diagram for zrythm::structure::project::ProjectSerializationTest:

Protected Member Functions

void SetUp () override
void TearDown () override
std::unique_ptr< Projectcreate_minimal_project ()

Static Protected Member Functions

static void assert_valid_uuid (const std::string &uuid_str)
static void assert_valid_color (const std::string &color_str)

Protected Attributes

std::unique_ptr< QTemporaryDir > temp_dir_obj
fs::path project_dir
std::shared_ptr< juce::AudioDeviceManager > audio_device_manager
std::unique_ptr< dsp::IHardwareAudioInterfacehw_interface
std::shared_ptr< juce::AudioPluginFormatManager > plugin_format_manager
test_helpers::MockSettingsBackendmock_backend_ptr {}
std::unique_ptr< utils::AppSettingsapp_settings
std::unique_ptr< dsp::PortRegistry > port_registry
std::unique_ptr< dsp::ProcessorParameterRegistryparam_registry
utils::QObjectUniquePtr< dsp::Fadermonitor_fader
utils::QObjectUniquePtr< dsp::Metronomemetronome

Static Protected Attributes

static constexpr utils::Version TEST_APP_VERSION { 2, 0, {} }
static constexpr utils::Version TEST_APP_VERSION_WITH_PATCH { 2, 0, 1 }

Additional Inherited Members

Public Member Functions inherited from zrythm::test_helpers::ScopedJuceQApplication
 ScopedJuceQApplication (const ScopedJuceQApplication &)=delete
ScopedJuceQApplication & operator= (const ScopedJuceQApplication &)=delete
 ScopedJuceQApplication (ScopedJuceQApplication &&)=delete
ScopedJuceQApplication & operator= (ScopedJuceQApplication &&)=delete

Detailed Description

Fixture for testing Project serialization with a minimal Project setup.

Definition at line 142 of file project_json_serializer_test.h.

Member Function Documentation

◆ assert_valid_color()

void zrythm::structure::project::ProjectSerializationTest::assert_valid_color ( const std::string & color_str)
inlinestaticprotected

Definition at line 248 of file project_json_serializer_test.h.

◆ assert_valid_uuid()

void zrythm::structure::project::ProjectSerializationTest::assert_valid_uuid ( const std::string & uuid_str)
inlinestaticprotected

Definition at line 237 of file project_json_serializer_test.h.

◆ create_minimal_project()

std::unique_ptr< Project > zrythm::structure::project::ProjectSerializationTest::create_minimal_project ( )
inlineprotected

Definition at line 213 of file project_json_serializer_test.h.

◆ SetUp()

void zrythm::structure::project::ProjectSerializationTest::SetUp ( )
inlineoverrideprotected

Definition at line 147 of file project_json_serializer_test.h.

◆ TearDown()

void zrythm::structure::project::ProjectSerializationTest::TearDown ( )
inlineoverrideprotected

Definition at line 202 of file project_json_serializer_test.h.

Field Documentation

◆ app_settings

std::unique_ptr<utils::AppSettings> zrythm::structure::project::ProjectSerializationTest::app_settings
protected

Definition at line 264 of file project_json_serializer_test.h.

◆ audio_device_manager

std::shared_ptr<juce::AudioDeviceManager> zrythm::structure::project::ProjectSerializationTest::audio_device_manager
protected

Definition at line 260 of file project_json_serializer_test.h.

◆ hw_interface

std::unique_ptr<dsp::IHardwareAudioInterface> zrythm::structure::project::ProjectSerializationTest::hw_interface
protected

Definition at line 261 of file project_json_serializer_test.h.

◆ metronome

utils::QObjectUniquePtr<dsp::Metronome> zrythm::structure::project::ProjectSerializationTest::metronome
protected

Definition at line 268 of file project_json_serializer_test.h.

◆ mock_backend_ptr

test_helpers::MockSettingsBackend* zrythm::structure::project::ProjectSerializationTest::mock_backend_ptr {}
protected

Definition at line 263 of file project_json_serializer_test.h.

◆ monitor_fader

utils::QObjectUniquePtr<dsp::Fader> zrythm::structure::project::ProjectSerializationTest::monitor_fader
protected

Definition at line 267 of file project_json_serializer_test.h.

◆ param_registry

std::unique_ptr<dsp::ProcessorParameterRegistry> zrythm::structure::project::ProjectSerializationTest::param_registry
protected

Definition at line 266 of file project_json_serializer_test.h.

◆ plugin_format_manager

std::shared_ptr<juce::AudioPluginFormatManager> zrythm::structure::project::ProjectSerializationTest::plugin_format_manager
protected

Definition at line 262 of file project_json_serializer_test.h.

◆ port_registry

std::unique_ptr<dsp::PortRegistry> zrythm::structure::project::ProjectSerializationTest::port_registry
protected

Definition at line 265 of file project_json_serializer_test.h.

◆ project_dir

fs::path zrythm::structure::project::ProjectSerializationTest::project_dir
protected

Definition at line 259 of file project_json_serializer_test.h.

◆ temp_dir_obj

std::unique_ptr<QTemporaryDir> zrythm::structure::project::ProjectSerializationTest::temp_dir_obj
protected

Definition at line 258 of file project_json_serializer_test.h.

◆ TEST_APP_VERSION

utils::Version zrythm::structure::project::ProjectSerializationTest::TEST_APP_VERSION { 2, 0, {} }
staticconstexprprotected

Definition at line 255 of file project_json_serializer_test.h.

◆ TEST_APP_VERSION_WITH_PATCH

utils::Version zrythm::structure::project::ProjectSerializationTest::TEST_APP_VERSION_WITH_PATCH { 2, 0, 1 }
staticconstexprprotected

Definition at line 256 of file project_json_serializer_test.h.


The documentation for this class was generated from the following file: