Title: Need a way to mock/hook WinRT runtime class activation for testing · Issue #476 · microsoft/cppwinrt · GitHub
Open Graph Title: Need a way to mock/hook WinRT runtime class activation for testing · Issue #476 · microsoft/cppwinrt
X Title: Need a way to mock/hook WinRT runtime class activation for testing · Issue #476 · microsoft/cppwinrt
Description: 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 impli...
Open Graph Description: 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 i...
X Description: 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 i...
Opengraph URL: https://github.com/microsoft/cppwinrt/issues/476
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Need a way to mock/hook WinRT runtime class activation for testing","articleBody":"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.\r\n\r\nIn 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.","author":{"url":"https://github.com/mithrandir","@type":"Person","name":"mithrandir"},"datePublished":"2020-01-16T00:47:12Z","url":"https://github.com/microsoft/cppwinrt/issues/476"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1de9c2a7-ce04-b164-61fc-c02e721cff8e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A530:2BAE74:4913CC:666BD0:6B0072BE |
| html-safe-nonce | 76f88e35b8357741402759976b8aa1e57952dee6497835ee9f0abbdbaa6d597e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTMwOjJCQUU3NDo0OTEzQ0M6NjY2QkQwOjZCMDA3MkJFIiwidmlzaXRvcl9pZCI6IjMwOTQwNjM0MDUzNzY3NjQ3OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5b6c1eb3f22efa40f2aaa37ad17052229a9302b6f100a7c7ee3e8a7669bbac0d |
| hovercard-subject-tag | issue:550509597 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/cppwinrt/476/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c71aa3549a4f134fe48c1f7aae28ca0471e88b5ba0b7327fb6d37c1363f6b897/microsoft/cppwinrt/issues/476 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c71aa3549a4f134fe48c1f7aae28ca0471e88b5ba0b7327fb6d37c1363f6b897/microsoft/cppwinrt/issues/476 |
| og:image:alt | 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 i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mithrandir |
| hostname | github.com |
| expected-hostname | github.com |
| None | 75c2b65dd205f26961d0c29afed1a8d0bb7cca9f05780571dfd1ef93eb539d16 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/cppwinrt git https://github.com/microsoft/cppwinrt.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 68223326 |
| octolytics-dimension-repository_nwo | microsoft/cppwinrt |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 68223326 |
| octolytics-dimension-repository_network_root_nwo | microsoft/cppwinrt |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 84e563eb4b55f8fa102f325f117533cee9e3df4a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width