Add basic native hosting test using comhost (dotnet/core-setup#5833)
authorElinor Fung <47805090+elinor-fung@users.noreply.github.com>
Mon, 15 Apr 2019 19:22:05 +0000 (12:22 -0700)
committerGitHub <noreply@github.com>
Mon, 15 Apr 2019 19:22:05 +0000 (12:22 -0700)
commitafb05510e0aca0d4a45926e67344ac3c2e2403be
tree65f5c09861c97b51c551efb77679b4ba8d60688e
parent15537d9321d7b3aef4c8da62eefbd71df371076a
Add basic native hosting test using comhost (dotnet/core-setup#5833)

* Test loads comhost and calls DllGetClassObject to activate
* Specify calling convention for COM activation delegate

Commit migrated from https://github.com/dotnet/core-setup/commit/48437b978361b7af9b37cdbecc290d4e058ee3fd
src/installer/corehost/cli/comhost/comhost.cpp
src/installer/corehost/cli/test/nativehost/CMakeLists.txt
src/installer/corehost/cli/test/nativehost/comhost_test.cpp [new file with mode: 0644]
src/installer/corehost/cli/test/nativehost/comhost_test.h [new file with mode: 0644]
src/installer/corehost/cli/test/nativehost/nativehost.cpp
src/installer/test/Assets/TestProjects/ComLibrary/ComLibrary.cs [new file with mode: 0644]
src/installer/test/Assets/TestProjects/ComLibrary/ComLibrary.csproj [new file with mode: 0644]
src/installer/test/HostActivationTests/NativeHosting/Comhost.cs [new file with mode: 0644]
src/installer/test/HostActivationTests/NativeHosting/Nethost.cs
src/installer/test/HostActivationTests/NativeHosting/SharedTestStateBase.cs [new file with mode: 0644]