Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create COM unit tests based on CoCreateInstance() function. #122

Open
end2endzone opened this issue Feb 24, 2023 · 0 comments
Open

Create COM unit tests based on CoCreateInstance() function. #122

end2endzone opened this issue Feb 24, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@end2endzone
Copy link
Owner

Is your feature request related to a problem? Please describe.
The application has unit test for the shell extension's entry point. These tests connects to the dll directly using LoadLibrary(), FreeLibrary() and GetProcAddress() to test the expected behavior's of the shell extension entry points.

For stronger reliability, test that forces the library to be loaded as a COM object should also be added. That is, the library should be loaded through CoCreateInstance() function.

Describe the solution you'd like
Refer to https://stackoverflow.com/questions/43010172/addref-and-release-in-iunknown-what-do-they-actually-do for examples of code that is able to instantiate the library.

Describe alternatives you've considered
N/A

Additional context
N/A

@end2endzone end2endzone added the enhancement New feature or request label Feb 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant