From d7ff6ae4ab287e61b9625dbb623c6679f1c60237 Mon Sep 17 00:00:00 2001 From: triton Date: Sun, 23 Jun 2013 04:38:18 +0100 Subject: [PATCH] Update test utility class for new ILibrary interface. --- src/Generator/Utils/TestsUtils.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Generator/Utils/TestsUtils.cs b/src/Generator/Utils/TestsUtils.cs index 7f93f3b7..be2d8a57 100644 --- a/src/Generator/Utils/TestsUtils.cs +++ b/src/Generator/Utils/TestsUtils.cs @@ -14,8 +14,9 @@ namespace CppSharp.Utils this.kind = kind; } - public virtual void Setup(DriverOptions options) + public virtual void Setup(Driver driver) { + var options = driver.Options; options.LibraryName = name + ".Native"; options.GeneratorKind = kind; options.OutputDir = "../gen/" + name; @@ -29,7 +30,7 @@ namespace CppSharp.Utils options.Headers.Add(Path.GetFileName(file)); } - public virtual void Preprocess(Library lib) + public virtual void Preprocess(Driver driver, Library lib) { }