/* * Copyright (c) Contributors to the Open 3D Engine Project. * For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #pragma once #include #include #include #include #include #include #include namespace UnitTests { struct MockBatchApplicationManager : BatchApplicationManager { using ApplicationManagerBase::InitFileMonitor; using ApplicationManagerBase::DestroyFileMonitor; using ApplicationManagerBase::InitFileStateCache; using ApplicationManagerBase::InitUuidManager; using ApplicationManagerBase::m_assetProcessorManager; using ApplicationManagerBase::m_fileProcessor; using ApplicationManagerBase::m_fileStateCache; using ApplicationManagerBase::m_platformConfiguration; using BatchApplicationManager::BatchApplicationManager; }; struct ApplicationManagerTest : ::UnitTest::LeakDetectionFixture { protected: void SetUp() override; void TearDown() override; AssetProcessor::MockAssetDatabaseRequestsHandler m_databaseLocationListener; AZStd::unique_ptr m_coreApplication; AZStd::unique_ptr m_applicationManager; AZStd::unique_ptr m_apmThread; AZStd::unique_ptr m_fileProcessorThread; AZStd::unique_ptr m_mockAPM; MockVirtualFileIO m_virtualFileIO; AzToolsFramework::UuidUtilComponent m_uuidUtil; AzToolsFramework::MetadataManager m_metadataManager; // These are just aliases, no need to manage/delete them FileWatcher* m_fileWatcher{}; MockFileProcessor* m_mockFileProcessor{}; }; }