Update COM Activator class (#22317)
authorAaron Robinson <arobins@microsoft.com>
Tue, 12 Feb 2019 16:33:58 +0000 (08:33 -0800)
committerGitHub <noreply@github.com>
Tue, 12 Feb 2019 16:33:58 +0000 (08:33 -0800)
commit09963dc2ee182e7e62212efbb205edd9c387961d
treed97bdbad524e0ac43bc4c13d10452cdf08d129d3
parent6cd9e3ab6cae4aaf2a70fe1e59173b998932601d
Update COM Activator class (#22317)

* Update COM Activator to use ALCs

* Update tests to now supply an assembly name rather than an binary "path"
  since the COM activator is now using ALCs.

* Add test for non-rooted assembly path.

* Move the hostpolicy mock project to a Common area
Move hostpolicy mock API to CoreCLR test library

* Add test for COM server isolation

* Move ComActivator class and logic to Internal namespace.
34 files changed:
src/System.Private.CoreLib/System.Private.CoreLib.csproj
src/System.Private.CoreLib/src/Internal/Runtime/InteropServices/ComActivator.cs [moved from src/System.Private.CoreLib/src/System/Runtime/InteropServices/ComActivator.cs with 69% similarity]
src/coreclr/hosts/coreshim/ComActivation.cpp
src/coreclr/hosts/coreshim/CoreShim.cpp
src/coreclr/hosts/coreshim/CoreShim.h
tests/src/Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj
tests/src/Common/CoreCLRTestLibrary/HostPolicyMock.cs [moved from tests/src/Loader/AssemblyDependencyResolverTests/HostPolicyMock.cs with 90% similarity]
tests/src/Common/CoreCLRTestLibrary/XPlatformUtils.cs [moved from tests/src/Loader/AssemblyDependencyResolverTests/XPlatformUtils.cs with 88% similarity]
tests/src/Common/hostpolicymock/CMakeLists.txt [moved from tests/src/Loader/AssemblyDependencyResolverTests/CMakeLists.txt with 100% similarity]
tests/src/Common/hostpolicymock/HostpolicyMock.cpp [moved from tests/src/Loader/AssemblyDependencyResolverTests/HostpolicyMock.cpp with 86% similarity]
tests/src/Interop/COM/Activator/Activator.csproj
tests/src/Interop/COM/Activator/Program.cs
tests/src/Interop/COM/Activator/Servers/AssemblyA.cs [new file with mode: 0644]
tests/src/Interop/COM/Activator/Servers/AssemblyA.csproj [new file with mode: 0644]
tests/src/Interop/COM/Activator/Servers/AssemblyB.cs [new file with mode: 0644]
tests/src/Interop/COM/Activator/Servers/AssemblyB.csproj [new file with mode: 0644]
tests/src/Interop/COM/Activator/Servers/AssemblyC.cs [new file with mode: 0644]
tests/src/Interop/COM/Activator/Servers/AssemblyC.csproj [new file with mode: 0644]
tests/src/Interop/COM/Activator/Servers/AssemblyContracts.cs [new file with mode: 0644]
tests/src/Interop/COM/Activator/Servers/AssemblyContracts.csproj [new file with mode: 0644]
tests/src/Interop/COM/NativeClients/Primitives.csproj
tests/src/Interop/COM/NativeClients/Primitives/ArrayTests.cpp
tests/src/Interop/COM/NativeClients/Primitives/ColorTests.cpp
tests/src/Interop/COM/NativeClients/Primitives/ErrorTests.cpp
tests/src/Interop/COM/NativeClients/Primitives/NumericTests.cpp
tests/src/Interop/COM/NativeClients/Primitives/StringTests.cpp
tests/src/Interop/ExecInDefAppDom/ExecInDefAppDom.csproj
tests/src/Interop/Interop.settings.targets
tests/src/Interop/NativeCallable/NativeCallableTest.csproj
tests/src/Interop/PInvoke/CustomMarshalers/CustomMarshalersTest.csproj
tests/src/Loader/AssemblyDependencyResolverTests/AssemblyDependencyResolverTests.cs
tests/src/Loader/AssemblyDependencyResolverTests/AssemblyDependencyResolverTests.csproj
tests/src/Loader/AssemblyDependencyResolverTests/InvalidHostingTest.cs
tests/src/Loader/AssemblyDependencyResolverTests/NativeDependencyTests.cs