diff --git a/tests/TypeMaps/QList.cs b/tests/TypeMaps/QList.cs deleted file mode 100644 index 2b6e5f0f..00000000 --- a/tests/TypeMaps/QList.cs +++ /dev/null @@ -1,57 +0,0 @@ -using CppSharp.AST.Extensions; -using CppSharp.Generators; -using CppSharp.Generators.CLI; -using CppSharp.Generators.CSharp; -using CppSharp.Types; - -namespace TypeMaps.Gen -{ - [TypeMap("QList")] - public class QList : TypeMap - { - public override bool DoesMarshalling - { - get { return false; } - } - - public override string CLISignature(CLITypePrinterContext ctx) - { - return "TypeMaps::QList^"; - } - - public override void CLIMarshalToManaged(MarshalContext ctx) - { - } - - public override void CLIMarshalToNative(MarshalContext ctx) - { - } - - public override string CSharpSignature(CSharpTypePrinterContext ctx) - { - if (ctx.CSharpKind == CSharpTypePrinterContextKind.Native) - { - if (Type.IsAddress()) - { - return "QList.Internal*"; - } - return "QList.Internal"; - } - return "QList"; - } - - public override void CSharpMarshalToManaged(MarshalContext ctx) - { - } - - public override void CSharpMarshalToNative(MarshalContext ctx) - { - } - - public override void CSharpMarshalCopyCtorToManaged(MarshalContext ctx) - { - ctx.SupportBefore.WriteLine("var __instance = new {0}.Internal();", ctx.ReturnType); - ctx.SupportBefore.WriteLine("__instance.i = {0}.i;", ctx.ReturnVarName); - } - } -} diff --git a/tests/TypeMaps/TypeMaps.Tests.cs b/tests/TypeMaps/TypeMaps.Tests.cs deleted file mode 100644 index e69de29b..00000000 diff --git a/tests/TypeMaps/TypeMaps.cpp b/tests/TypeMaps/TypeMaps.cpp deleted file mode 100644 index 154afc88..00000000 --- a/tests/TypeMaps/TypeMaps.cpp +++ /dev/null @@ -1,11 +0,0 @@ -#include "TypeMaps.h" -#include - -QList::QList() : i(5) -{ -} - -QList HasQList::getList() -{ - return list; -} diff --git a/tests/TypeMaps/TypeMaps.cs b/tests/TypeMaps/TypeMaps.cs deleted file mode 100644 index 50561178..00000000 --- a/tests/TypeMaps/TypeMaps.cs +++ /dev/null @@ -1,34 +0,0 @@ -using System.Linq; -using CppSharp.AST; -using CppSharp.Generators; -using CppSharp.Utils; - -namespace CppSharp.Tests -{ - public class TypeMaps : GeneratorTest - { - public TypeMaps(GeneratorKind kind) - : base("TypeMaps", kind) - { - - } - - public override void SetupPasses(Driver driver) - { - driver.Options.MarshalCharAsManagedChar = true; - } - - public override void Preprocess(Driver driver, ASTContext ctx) - { - ctx.SetClassAsValueType("HasQList"); - ctx.FindCompleteClass("QList").Constructors.First(c => c.IsCopyConstructor).GenerationKind = GenerationKind.None; - ctx.IgnoreClassWithName("IgnoredType"); - } - - public static void Main(string[] args) - { - ConsoleDriver.Run(new TypeMaps(GeneratorKind.CLI)); - ConsoleDriver.Run(new TypeMaps(GeneratorKind.CSharp)); - } - } -} diff --git a/tests/TypeMaps/TypeMaps.h b/tests/TypeMaps/TypeMaps.h deleted file mode 100644 index f09257f5..00000000 --- a/tests/TypeMaps/TypeMaps.h +++ /dev/null @@ -1,16 +0,0 @@ -#include "../Tests.h" - -class DLL_API QList -{ -public: - QList(); - int i; -}; - -class DLL_API HasQList -{ -public: - QList getList(); -private: - QList list; -}; diff --git a/tests/TypeMaps/premake4.lua b/tests/TypeMaps/premake4.lua deleted file mode 100644 index df7f3f0d..00000000 --- a/tests/TypeMaps/premake4.lua +++ /dev/null @@ -1,2 +0,0 @@ -group "Tests/TypeMaps" - SetupTestProject("TypeMaps") \ No newline at end of file