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

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

#include <tests/unit/controllers/project_json_serializer_test.h>

Inheritance diagram for zrythm::controllers::ProjectSerializationTest:
Collaboration diagram for zrythm::controllers::ProjectSerializationTest:

Protected Member Functions

void SetUp () override
void TearDown () override
std::unique_ptr< structure::project::Projectcreate_minimal_project ()
void create_ui_state_and_undo_stack (structure::project::Project &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
utils::QObjectUniquePtr< structure::project::ProjectUiStateui_state
utils::QObjectUniquePtr< undo::UndoStackundo_stack

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 195 of file project_json_serializer_test.h.

Member Function Documentation

◆ assert_valid_color()

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

Definition at line 316 of file project_json_serializer_test.h.

◆ assert_valid_uuid()

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

Definition at line 305 of file project_json_serializer_test.h.

◆ create_minimal_project()

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

Definition at line 268 of file project_json_serializer_test.h.

◆ create_ui_state_and_undo_stack()

void zrythm::controllers::ProjectSerializationTest::create_ui_state_and_undo_stack ( structure::project::Project & project)
inlineprotected

Definition at line 291 of file project_json_serializer_test.h.

◆ SetUp()

void zrythm::controllers::ProjectSerializationTest::SetUp ( )
inlineoverrideprotected

Definition at line 200 of file project_json_serializer_test.h.

◆ TearDown()

void zrythm::controllers::ProjectSerializationTest::TearDown ( )
inlineoverrideprotected

Definition at line 255 of file project_json_serializer_test.h.

Field Documentation

◆ app_settings

std::unique_ptr<utils::AppSettings> zrythm::controllers::ProjectSerializationTest::app_settings
protected

Definition at line 332 of file project_json_serializer_test.h.

◆ audio_device_manager

std::shared_ptr<juce::AudioDeviceManager> zrythm::controllers::ProjectSerializationTest::audio_device_manager
protected

Definition at line 328 of file project_json_serializer_test.h.

◆ hw_interface

std::unique_ptr<dsp::IHardwareAudioInterface> zrythm::controllers::ProjectSerializationTest::hw_interface
protected

Definition at line 329 of file project_json_serializer_test.h.

◆ metronome

utils::QObjectUniquePtr<dsp::Metronome> zrythm::controllers::ProjectSerializationTest::metronome
protected

Definition at line 336 of file project_json_serializer_test.h.

◆ mock_backend_ptr

test_helpers::MockSettingsBackend* zrythm::controllers::ProjectSerializationTest::mock_backend_ptr {}
protected

Definition at line 331 of file project_json_serializer_test.h.

◆ monitor_fader

utils::QObjectUniquePtr<dsp::Fader> zrythm::controllers::ProjectSerializationTest::monitor_fader
protected

Definition at line 335 of file project_json_serializer_test.h.

◆ param_registry

std::unique_ptr<dsp::ProcessorParameterRegistry> zrythm::controllers::ProjectSerializationTest::param_registry
protected

Definition at line 334 of file project_json_serializer_test.h.

◆ plugin_format_manager

std::shared_ptr<juce::AudioPluginFormatManager> zrythm::controllers::ProjectSerializationTest::plugin_format_manager
protected

Definition at line 330 of file project_json_serializer_test.h.

◆ port_registry

std::unique_ptr<dsp::PortRegistry> zrythm::controllers::ProjectSerializationTest::port_registry
protected

Definition at line 333 of file project_json_serializer_test.h.

◆ project_dir

fs::path zrythm::controllers::ProjectSerializationTest::project_dir
protected

Definition at line 327 of file project_json_serializer_test.h.

◆ temp_dir_obj

std::unique_ptr<QTemporaryDir> zrythm::controllers::ProjectSerializationTest::temp_dir_obj
protected

Definition at line 326 of file project_json_serializer_test.h.

◆ TEST_APP_VERSION

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

Definition at line 323 of file project_json_serializer_test.h.

◆ TEST_APP_VERSION_WITH_PATCH

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

Definition at line 324 of file project_json_serializer_test.h.

◆ ui_state

utils::QObjectUniquePtr<structure::project::ProjectUiState> zrythm::controllers::ProjectSerializationTest::ui_state
protected

Definition at line 337 of file project_json_serializer_test.h.

◆ undo_stack

utils::QObjectUniquePtr<undo::UndoStack> zrythm::controllers::ProjectSerializationTest::undo_stack
protected

Definition at line 338 of file project_json_serializer_test.h.


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