using System.Collections; using System.Collections.Generic; using UnityEditor; using UnityEditor.Build.Content; using UnityEditor.Build.Pipeline; using UnityEditor.Build.Pipeline.Interfaces; using UnityEditor.Build.Pipeline.Tasks; using UnityEditor.Build.Player; using UnityEngine; namespace UnityEditor.Build.Pipeline.Tests { internal static class TestTracing { public static string Callsite([System.Runtime.CompilerServices.CallerMemberName] string memberName = "", [System.Runtime.CompilerServices.CallerFilePath] string sourceFilePath = "", [System.Runtime.CompilerServices.CallerLineNumber] int sourceLineNumber = 0) { return $"at {memberName} in {sourceFilePath}:{sourceLineNumber}"; } } internal class TestBuildParametersBase : IBuildParameters { public virtual BuildTarget Target { get => throw new System.NotImplementedException(TestTracing.Callsite()); set => throw new System.NotImplementedException(TestTracing.Callsite()); } public virtual BuildTargetGroup Group { get => throw new System.NotImplementedException(TestTracing.Callsite()); set => throw new System.NotImplementedException(TestTracing.Callsite()); } public virtual ContentBuildFlags ContentBuildFlags { get => throw new System.NotImplementedException(TestTracing.Callsite()); set => throw new System.NotImplementedException(TestTracing.Callsite()); } public virtual TypeDB ScriptInfo { get => throw new System.NotImplementedException(TestTracing.Callsite()); set => throw new System.NotImplementedException(TestTracing.Callsite()); } public virtual ScriptCompilationOptions ScriptOptions { get => throw new System.NotImplementedException(TestTracing.Callsite()); set => throw new System.NotImplementedException(TestTracing.Callsite()); } public virtual string TempOutputFolder { get => throw new System.NotImplementedException(TestTracing.Callsite()); set => throw new System.NotImplementedException(TestTracing.Callsite()); } public virtual string ScriptOutputFolder { get => throw new System.NotImplementedException(TestTracing.Callsite()); set => throw new System.NotImplementedException(TestTracing.Callsite()); } public virtual bool UseCache { get => throw new System.NotImplementedException(TestTracing.Callsite()); set => throw new System.NotImplementedException(TestTracing.Callsite()); } public virtual string CacheServerHost { get => throw new System.NotImplementedException(TestTracing.Callsite()); set => throw new System.NotImplementedException(TestTracing.Callsite()); } public virtual int CacheServerPort { get => throw new System.NotImplementedException(TestTracing.Callsite()); set => throw new System.NotImplementedException(TestTracing.Callsite()); } public virtual bool WriteLinkXML { get => throw new System.NotImplementedException(TestTracing.Callsite()); set => throw new System.NotImplementedException(TestTracing.Callsite()); } public virtual bool NonRecursiveDependencies { get => throw new System.NotImplementedException(TestTracing.Callsite()); set => throw new System.NotImplementedException(TestTracing.Callsite()); } public virtual UnityEngine.BuildCompression GetCompressionForIdentifier(string identifier) { throw new System.NotImplementedException(TestTracing.Callsite()); } public virtual BuildSettings GetContentBuildSettings() { throw new System.NotImplementedException(TestTracing.Callsite()); } public virtual string GetOutputFilePathForIdentifier(string identifier) { throw new System.NotImplementedException(TestTracing.Callsite()); } public virtual ScriptCompilationSettings GetScriptCompilationSettings() { throw new System.NotImplementedException(TestTracing.Callsite()); } } internal class TestBundleBuildParameters : TestBuildParametersBase, IBundleBuildParameters { public virtual bool AppendHash { get => throw new System.NotImplementedException(); set => throw new System.NotImplementedException(); } public virtual bool ContiguousBundles { get => throw new System.NotImplementedException(); set => throw new System.NotImplementedException(); } public virtual bool DisableVisibleSubAssetRepresentations { get => throw new System.NotImplementedException(); set => throw new System.NotImplementedException(); } } internal class TestBundleBuildContent : IBundleBuildContent { public virtual Dictionary> BundleLayout => throw new System.NotImplementedException(TestTracing.Callsite()); public virtual Dictionary Addresses => throw new System.NotImplementedException(TestTracing.Callsite()); public virtual List Assets => throw new System.NotImplementedException(TestTracing.Callsite()); public virtual List Scenes => throw new System.NotImplementedException(TestTracing.Callsite()); #if UNITY_2019_3_OR_NEWER public virtual Dictionary> AdditionalFiles => throw new System.NotImplementedException(TestTracing.Callsite()); public virtual List CustomAssets => throw new System.NotImplementedException(TestTracing.Callsite()); #endif } internal class TestDependencyDataBase : IDependencyData { public virtual Dictionary AssetInfo => throw new System.NotImplementedException(TestTracing.Callsite()); public virtual Dictionary AssetUsage => throw new System.NotImplementedException(TestTracing.Callsite()); public virtual Dictionary SceneInfo => throw new System.NotImplementedException(TestTracing.Callsite()); public virtual Dictionary SceneUsage => throw new System.NotImplementedException(TestTracing.Callsite()); public virtual BuildUsageCache DependencyUsageCache => throw new System.NotImplementedException(TestTracing.Callsite()); public virtual BuildUsageTagGlobal GlobalUsage { get => throw new System.NotImplementedException(); set => throw new System.NotImplementedException(); } public virtual Dictionary DependencyHash => throw new System.NotImplementedException(TestTracing.Callsite()); } internal class TestWriteDataBase : IWriteData { public virtual Dictionary> AssetToFiles => throw new System.NotImplementedException(TestTracing.Callsite()); public virtual Dictionary> FileToObjects => throw new System.NotImplementedException(TestTracing.Callsite()); public virtual List WriteOperations => throw new System.NotImplementedException(TestTracing.Callsite()); } internal class TestBuildResultsBase : IBuildResults { public virtual ScriptCompilationResult ScriptResults { get => throw new System.NotImplementedException(TestTracing.Callsite()); set => throw new System.NotImplementedException(TestTracing.Callsite()); } public virtual Dictionary WriteResults => throw new System.NotImplementedException(TestTracing.Callsite()); public virtual Dictionary WriteResultsMetaData => throw new System.NotImplementedException(TestTracing.Callsite()); public Dictionary AssetResults => throw new System.NotImplementedException(TestTracing.Callsite()); } internal class TestBundleExplictObjectLayout : IBundleExplictObjectLayout { public virtual Dictionary ExplicitObjectLocation { get => throw new System.NotImplementedException(TestTracing.Callsite()); set => throw new System.NotImplementedException(TestTracing.Callsite()); } } internal class TestBundleExtendedAssetData : IBuildExtendedAssetData { public virtual Dictionary ExtendedData => throw new System.NotImplementedException(); } }