<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Tianocore/edk2.git/MdeModulePkg/Test/Mock, branch dependabot/github_actions/actions/setup-python-7</title>
<subtitle>EDK II (mirror)</subtitle>
<id>https://git.radix-linux.su/Tianocore/edk2.git/atom?h=dependabot%2Fgithub_actions%2Factions%2Fsetup-python-7</id>
<link rel='self' href='https://git.radix-linux.su/Tianocore/edk2.git/atom?h=dependabot%2Fgithub_actions%2Factions%2Fsetup-python-7'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/'/>
<updated>2026-06-25T19:40:31+00:00</updated>
<entry>
<title>MdeModulePkg: Follow pragma once coding convention</title>
<updated>2026-06-25T19:40:31+00:00</updated>
<author>
<name>Michael Kubacki</name>
<email>michael.kubacki@microsoft.com</email>
</author>
<published>2026-06-18T15:58:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=16b41f7d023d4977b8ae828da814fe3d6a125200'/>
<id>urn:sha1:16b41f7d023d4977b8ae828da814fe3d6a125200</id>
<content type='text'>
Update recent changes in MdeModulePkg to follow the latest EDK II
C Coding Standards Specification (5.3) to use '#pragma once' instead
of traditional macro-based include guards in header files.

https://tianocore-docs.github.io/edk2-CCodingStandardsSpecification/draft/5_source_files/53_include_files.html#53-include-files

Signed-off-by: Michael Kubacki &lt;michael.kubacki@microsoft.com&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg: Added several mock libraries for google test</title>
<updated>2026-04-02T03:27:19+00:00</updated>
<author>
<name>PaddyDeng</name>
<email>paddydeng@ami.com</email>
</author>
<published>2026-02-23T08:29:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=d68752de91db50259a65b49a9d3b2d98eec767c2'/>
<id>urn:sha1:d68752de91db50259a65b49a9d3b2d98eec767c2</id>
<content type='text'>
Added several mock libraries for google test so one can make google test
drives consuming those libraries:

- MockTpmMeasurementLib
- MockFirmwareVolumeShadowPpi

Signed-off-by: Paddy Deng &lt;PaddyDeng@ami.com&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg: Replace include guards with #pragma once</title>
<updated>2026-02-23T21:01:28+00:00</updated>
<author>
<name>Michael Kubacki</name>
<email>michael.kubacki@microsoft.com</email>
</author>
<published>2026-02-03T18:48:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=7a934d0befca7d10f361c76af6d2fcb6eb48c835'/>
<id>urn:sha1:7a934d0befca7d10f361c76af6d2fcb6eb48c835</id>
<content type='text'>
Replace traditional `#ifndef`/`#define`/`#endif` include guards with
`#pragma` once.

`#pragma once` is a widely supported preprocessor directive that
prevents header files from being included multiple times. It is
supported by all toolchains used to build edk2: GCC, Clang/LLVM, and
MSVC.

Compared to macro-based include guards, `#pragma once`:

- Eliminates the risk of macro name collisions or copy/paste errors
  where two headers inadvertently use the same guard macro.
- Eliminate inconsistency in the way include guard macros are named
  (e.g., some files use `__FILE_H__`, others use `FILE_H_`, etc.).
- Reduces boilerplate (three lines replaced by one).
- Avoids polluting the macro namespace with guard symbols.
- Can improve build times as the preprocessor can skip re-opening the
  file entirely, rather than re-reading it to find the matching
  `#endif` ("multiple-include optimization").
  - Note that some compilers may already optimize traditional include
    guards, by recognzining the idiomatic pattern.

This change is made acknowledging that overall portability of the
code will technically be reduced, as `#pragma once` is not part of the
C/C++ standards.

However, this is considered acceptable given:

1. edk2 already defines a subset of supported compilers in
   BaseTools/Conf/tools_def.template, all of which have supported
   `#pragma once` for over two decades.
2. There have been concerns raised to the project about inconsistent
   include guard naming and potential macro collisions.

Approximate compiler support dates:

- MSVC: Supported since Visual C++ 4.2 (1996)
- GCC: Supported since 3.4 (2004)
  (http://gnu.ist.utl.pt/software/gcc/gcc-3.4/changes.html)
- Clang (LLVM based): Since initial release in 2007

Signed-off-by: Michael Kubacki &lt;michael.kubacki@microsoft.com&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg/Test/Include: Fix SecurityManagement include guard</title>
<updated>2025-09-19T04:41:29+00:00</updated>
<author>
<name>Michael D Kinney</name>
<email>michael.d.kinney@intel.com</email>
</author>
<published>2025-08-21T16:05:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=f57fab9b1de09f1e50dfed68f1fedc54a43402fd'/>
<id>urn:sha1:f57fab9b1de09f1e50dfed68f1fedc54a43402fd</id>
<content type='text'>
Fix mimatched macro name of include guard in
MockSecurityManagementLib.h. This was found with unit test
build using CLANGDWARF.

Signed-off-by: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg: added SecurityManagementLib mock</title>
<updated>2025-08-07T01:18:26+00:00</updated>
<author>
<name>Alexander Gryanko</name>
<email>xpahos@gmail.com</email>
</author>
<published>2025-06-22T04:29:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=1c3a22059b2da70832d4097141281d309a025c37'/>
<id>urn:sha1:1c3a22059b2da70832d4097141281d309a025c37</id>
<content type='text'>
Added Google Mock test support for SecurityManagementLib

Signed-off-by: Alexander Gryanko &lt;xpahos@gmail.com&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg: Removed Pei, Dxe, Smm and mm header files</title>
<updated>2025-05-28T08:01:10+00:00</updated>
<author>
<name>Bhavani Subramanian</name>
<email>v-bhavanisu@microsoft.com</email>
</author>
<published>2025-05-27T19:58:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=20cd31ea838969d3af2b7494d4d509585f3cc64a'/>
<id>urn:sha1:20cd31ea838969d3af2b7494d4d509585f3cc64a</id>
<content type='text'>
Signed-off-by: Bhavani Subramanian &lt;v-bhavanisu@microsoft.com&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg: Added MockHiiLib</title>
<updated>2025-05-28T08:01:10+00:00</updated>
<author>
<name>Bhavani Subramanian</name>
<email>v-bhavanisu@microsoft.com</email>
</author>
<published>2025-01-22T19:11:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=3d9de5d046e401fbe5e36a89e171df49edacc2f7'/>
<id>urn:sha1:3d9de5d046e401fbe5e36a89e171df49edacc2f7</id>
<content type='text'>
Signed-off-by: Bhavani Subramanian &lt;v-bhavanisu@microsoft.com&gt;
</content>
</entry>
<entry>
<title>Add MockVariablePolicyHelperLib</title>
<updated>2025-02-07T18:43:32+00:00</updated>
<author>
<name>Kane Chen</name>
<email>kane.chen@microsoft.com</email>
</author>
<published>2024-12-05T07:46:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=0d61f52fe31c86936c5b4268effddad7241c811e'/>
<id>urn:sha1:0d61f52fe31c86936c5b4268effddad7241c811e</id>
<content type='text'>
Signed-off-by: Kane Chen &lt;kane.chen@microsoft.com&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg: Apply uncrustify formatting to relevant files.</title>
<updated>2023-10-27T00:50:49+00:00</updated>
<author>
<name>Vivian Nowka-Keane</name>
<email>vnowkakeane@linux.microsoft.com</email>
</author>
<published>2023-08-16T21:15:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=504953ef976b2435c871f5c0896701afcebdcf8a'/>
<id>urn:sha1:504953ef976b2435c871f5c0896701afcebdcf8a</id>
<content type='text'>
Apply uncrustify formatting to GoogleTest cpp files and respective
header file.

Cc: Jian J Wang &lt;jian.j.wang@intel.com&gt;
Cc: Liming Gao &lt;gaoliming@byosoft.com.cn&gt;
Cc: Hao A Wu &lt;hao.a.wu@intel.com&gt;
Cc: Ray Ni &lt;ray.ni@intel.com&gt;
Signed-off-by: Vivian Nowka-Keane &lt;vnowkakeane@linux.microsoft.com&gt;
Reviewed-by: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg: Add more PciHostBridgeLib gmock support</title>
<updated>2023-05-10T00:39:13+00:00</updated>
<author>
<name>Gua Guo</name>
<email>gua.guo@intel.com</email>
</author>
<published>2023-05-05T01:16:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=25c9d4431580e68b9f11656163d032bc862c7e9b'/>
<id>urn:sha1:25c9d4431580e68b9f11656163d032bc862c7e9b</id>
<content type='text'>
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4443

Add Google Mock Library for PciHostBridgeLib

Cc: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
Cc: Hao A Wu &lt;hao.a.wu@intel.com&gt;
Cc: Ray Ni &lt;ray.ni@intel.com&gt;
Cc: Chris Johnson &lt;chris.n.johnson@intel.com&gt;
Signed-off-by: Gua Guo &lt;gua.guo@intel.com&gt;
Reviewed-by: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
</content>
</entry>
</feed>
