diff options
Diffstat (limited to 'test/Mono.Linker.Tests/TestCasesRunner/ObjectFactory.cs')
-rw-r--r-- | test/Mono.Linker.Tests/TestCasesRunner/ObjectFactory.cs | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/test/Mono.Linker.Tests/TestCasesRunner/ObjectFactory.cs b/test/Mono.Linker.Tests/TestCasesRunner/ObjectFactory.cs new file mode 100644 index 000000000..71d1c3859 --- /dev/null +++ b/test/Mono.Linker.Tests/TestCasesRunner/ObjectFactory.cs @@ -0,0 +1,31 @@ +using Mono.Cecil; +using Mono.Linker.Tests.TestCases; + +namespace Mono.Linker.Tests.TestCasesRunner { + public class ObjectFactory { + public virtual TestCaseSandbox CreateSandbox (TestCase testCase) + { + return new TestCaseSandbox (testCase); + } + + public virtual TestCaseCompiler CreateCompiler (TestCaseSandbox sandbox, TestCaseMetadaProvider metadataProvider) + { + return new TestCaseCompiler (sandbox, metadataProvider); + } + + public virtual LinkerDriver CreateLinker () + { + return new LinkerDriver (); + } + + public virtual TestCaseMetadaProvider CreateMetadataProvider (TestCase testCase, AssemblyDefinition fullTestCaseAssemblyDefinition) + { + return new TestCaseMetadaProvider (testCase, fullTestCaseAssemblyDefinition); + } + + public virtual LinkerArgumentBuilder CreateLinkerArgumentBuilder (TestCaseMetadaProvider metadataProvider) + { + return new LinkerArgumentBuilder (metadataProvider); + } + } +}
\ No newline at end of file |