Skip to content

Need a way to mock/hook WinRT runtime class activation for testing #476

Description

@mithrandir

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions