Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

guimafelipe
Copy link
Contributor

@guimafelipe guimafelipe commented Oct 14, 2025

This pull request updates several test header files to improve consistency and ensure all necessary dependencies are explicitly included. The main focus is on adding missing system and library includes, which helps prevent build issues and makes dependencies clearer for future maintenance.

Dependency inclusion improvements:

  • Added missing includes such as <windows.h>, <winrt/base.h>, <WexTestClass.h>, <appmodel.h>, <Verify.h>, and <filesystem> to multiple test headers including TestDef.h, WindowsAppRuntime.Test.AppModel.h, WindowsAppRuntime.Test.Bootstrap.h, WindowsAppRuntime.Test.FileSystem.h, WindowsAppRuntime.Test.Package.h, WindowsAppRuntime.Test.TAEF.cppwinrt.h, and WindowsAppRuntime.Test.TAEF.h. [1] [2] [3] [4] [5] [6] [7]

These changes help ensuring that each header is independent and handle its own dependencies. Without these explicit dependencies, when creating a new test file, we need to know precisely the order in which to include each header for them to work, as some headers are dependent on external includes to exist. Or use one of the .pch files as example, but then making it harder to maintain as the dependencies are hidden and we end up including unnecessary files.
This is also stated on C++ Core Guidelines.

A microsoft employee must use /azp run to validate using the pipelines below.

WARNING:
Comments made by azure-pipelines bot maybe inaccurate.
Please see pipeline link to verify that the build is being ran.

For status checks on the main branch, please use TransportPackage-Foundation-PR
(https://microsoft.visualstudio.com/ProjectReunion/_build?definitionId=81063&_a=summary)
and run the build against your PR branch with the default parameters.

@guimafelipe
Copy link
Contributor Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@guimafelipe guimafelipe marked this pull request as ready for review October 14, 2025 23:03
@guimafelipe
Copy link
Contributor Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.