Previously, we could override WinRT_RoGetActivationFactory to hook RoGetActivationFactory and return mock object instead. With #469 this is not supported. There is new reg-free activation support in that change, like searching dlls implicitly. For example, "Foo.Bar.Baz" is the runtime class name, then it will search "Foo.Bar.dll", "Foo.dll" and probe DllGetActivationFactory(). This only happens when it failed to activate system registered one.
In case of testing for authoring WinRT component, we need mocking mechanism for dependency runtime classes we can use even there is existing runtime class in the system.
Previously, we could override
WinRT_RoGetActivationFactoryto hook RoGetActivationFactory and return mock object instead. With #469 this is not supported. There is new reg-free activation support in that change, like searching dlls implicitly. For example, "Foo.Bar.Baz" is the runtime class name, then it will search "Foo.Bar.dll", "Foo.dll" and probe DllGetActivationFactory(). This only happens when it failed to activate system registered one.In case of testing for authoring WinRT component, we need mocking mechanism for dependency runtime classes we can use even there is existing runtime class in the system.