blob: 71d1c38598089012a9364615e81d3c8a222fc630 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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);
}
}
}
|