Update COM Activator class (dotnet/coreclr#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)
commit8b6823c9697ea2a1c8517b7c26c5c2cdd09a766e
tree6b9c9ed7e2398433bef13a15e34af4ea4bb316b3
parent112d5c173d5ea269d271eaa8924d511acc3d25c0
Update COM Activator class (dotnet/coreclr#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.

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