Add PInvoke/SizeParamIndex tests (#19348)
authorZeng Jiang <v-jiazen@microsoft.com>
Fri, 16 Nov 2018 00:31:38 +0000 (08:31 +0800)
committerJeremy Koritzinsky <jkoritzinsky@gmail.com>
Fri, 16 Nov 2018 00:31:38 +0000 (16:31 -0800)
commit243116831430aa73338b05cdeba94bbd347df0fe
tree580f38802b9563f06acb16c4c36d9492cb7ca874
parentcc8de13a8853a76fb3eb99cc209a4986eb3b2585
Add PInvoke/SizeParamIndex tests (#19348)

* Add PInvoke/SizeParamIndex tests

* Fix compile warnings

* First pass cleaning up native code.

* Get ParamSizeIndex tests working xplat (excluding the BSTR array tests)

* Fix incorrect definition of ULONG off-windows.

* Disable reverse-PInvoke throwing test off-Windows.
23 files changed:
tests/src/Common/Platform/platformdefines.h
tests/src/Interop/CMakeLists.txt
tests/src/Interop/PInvoke/SizeParamIndex/PInvoke/PassingByOut/CMakeLists.txt [new file with mode: 0644]
tests/src/Interop/PInvoke/SizeParamIndex/PInvoke/PassingByOut/PInvokePassingByOutNative.cpp [new file with mode: 0644]
tests/src/Interop/PInvoke/SizeParamIndex/PInvoke/PassingByOut/PassingByOutTest.cs [new file with mode: 0644]
tests/src/Interop/PInvoke/SizeParamIndex/PInvoke/PassingByOut/PassingByOutTest.csproj [new file with mode: 0644]
tests/src/Interop/PInvoke/SizeParamIndex/PInvoke/PassingByRef/CMakeLists.txt [new file with mode: 0644]
tests/src/Interop/PInvoke/SizeParamIndex/PInvoke/PassingByRef/PInvokePassingByRefNative.cpp [new file with mode: 0644]
tests/src/Interop/PInvoke/SizeParamIndex/PInvoke/PassingByRef/PassingByRefTest.cs [new file with mode: 0644]
tests/src/Interop/PInvoke/SizeParamIndex/PInvoke/PassingByRef/PassingByRefTest.csproj [new file with mode: 0644]
tests/src/Interop/PInvoke/SizeParamIndex/PInvoke/helper.cs [new file with mode: 0644]
tests/src/Interop/PInvoke/SizeParamIndex/PInvoke/helper.h [new file with mode: 0644]
tests/src/Interop/PInvoke/SizeParamIndex/ReversePInvoke/PassingByOut/CMakeLists.txt [new file with mode: 0644]
tests/src/Interop/PInvoke/SizeParamIndex/ReversePInvoke/PassingByOut/PassingByOutTest.cs [new file with mode: 0644]
tests/src/Interop/PInvoke/SizeParamIndex/ReversePInvoke/PassingByOut/PassingByOutTest.csproj [new file with mode: 0644]
tests/src/Interop/PInvoke/SizeParamIndex/ReversePInvoke/PassingByOut/ReversePInvokePassingByOutNative.cpp [new file with mode: 0644]
tests/src/Interop/PInvoke/SizeParamIndex/ReversePInvoke/PassingByRef/CMakeLists.txt [new file with mode: 0644]
tests/src/Interop/PInvoke/SizeParamIndex/ReversePInvoke/PassingByRef/PassingByRefTest.cs [new file with mode: 0644]
tests/src/Interop/PInvoke/SizeParamIndex/ReversePInvoke/PassingByRef/PassingByRefTest.csproj [new file with mode: 0644]
tests/src/Interop/PInvoke/SizeParamIndex/ReversePInvoke/PassingByRef/ReversePInvokePassingByRefNative.cpp [new file with mode: 0644]
tests/src/Interop/PInvoke/SizeParamIndex/ReversePInvoke/helper.cs [new file with mode: 0644]
tests/src/Interop/PInvoke/SizeParamIndex/ReversePInvoke/helper.h [new file with mode: 0644]
tests/src/Interop/common/types.h