|
|
|
|
@ -12,6 +12,7 @@
|
|
|
|
|
#include <AzTest/AzTest.h>
|
|
|
|
|
#include <AzCore/Slice/SliceComponent.h>
|
|
|
|
|
#include <AzCore/Serialization/Utils.h>
|
|
|
|
|
#include <AzCore/Settings/SettingsRegistryMergeUtils.h>
|
|
|
|
|
#include <AzCore/UserSettings/UserSettingsComponent.h>
|
|
|
|
|
#include <AzToolsFramework/ToolsComponents/GenericComponentWrapper.h>
|
|
|
|
|
#include <AzToolsFramework/Application/ToolsApplication.h>
|
|
|
|
|
@ -59,6 +60,12 @@ class WrappedEditorComponentTest
|
|
|
|
|
protected:
|
|
|
|
|
void SetUp() override
|
|
|
|
|
{
|
|
|
|
|
AZ::SettingsRegistryInterface* registry = AZ::SettingsRegistry::Get();
|
|
|
|
|
auto projectPathKey =
|
|
|
|
|
AZ::SettingsRegistryInterface::FixedValueString(AZ::SettingsRegistryMergeUtils::BootstrapSettingsRootKey) + "/project_path";
|
|
|
|
|
registry->Set(projectPathKey, "AutomatedTesting");
|
|
|
|
|
AZ::SettingsRegistryMergeUtils::MergeSettingsToRegistry_AddRuntimeFilePaths(*registry);
|
|
|
|
|
|
|
|
|
|
m_app.Start(AZ::ComponentApplication::Descriptor());
|
|
|
|
|
|
|
|
|
|
// Without this, the user settings component would attempt to save on finalize/shutdown. Since the file is
|
|
|
|
|
@ -178,6 +185,12 @@ class FindWrappedComponentsTest
|
|
|
|
|
public:
|
|
|
|
|
void SetUp() override
|
|
|
|
|
{
|
|
|
|
|
AZ::SettingsRegistryInterface* registry = AZ::SettingsRegistry::Get();
|
|
|
|
|
auto projectPathKey =
|
|
|
|
|
AZ::SettingsRegistryInterface::FixedValueString(AZ::SettingsRegistryMergeUtils::BootstrapSettingsRootKey) + "/project_path";
|
|
|
|
|
registry->Set(projectPathKey, "AutomatedTesting");
|
|
|
|
|
AZ::SettingsRegistryMergeUtils::MergeSettingsToRegistry_AddRuntimeFilePaths(*registry);
|
|
|
|
|
|
|
|
|
|
m_app.Start(AzFramework::Application::Descriptor());
|
|
|
|
|
|
|
|
|
|
// Without this, the user settings component would attempt to save on finalize/shutdown. Since the file is
|
|
|
|
|
|