<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Tianocore/edk2.git/MdeModulePkg/Test, branch master</title>
<subtitle>EDK II (mirror)</subtitle>
<id>https://git.radix-linux.su/Tianocore/edk2.git/atom?h=master</id>
<link rel='self' href='https://git.radix-linux.su/Tianocore/edk2.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/'/>
<updated>2026-07-31T15:16:47+00:00</updated>
<entry>
<title>MdeModulePkg: Host Test: Adding AArch64 target</title>
<updated>2026-07-31T15:16:47+00:00</updated>
<author>
<name>Kun Qin</name>
<email>kuqin@microsoft.com</email>
</author>
<published>2026-01-20T21:55:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=47c48984c5d5ab0caadc5d679ca3beb28c6e4433'/>
<id>urn:sha1:47c48984c5d5ab0caadc5d679ca3beb28c6e4433</id>
<content type='text'>
This change adds the AArch64 target for host based unit tests.

Signed-off-by: Kun Qin &lt;kun.qin@microsoft.com&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg/GptLib: Add host-based unit tests for valid GPT behavior</title>
<updated>2026-07-20T21:50:57+00:00</updated>
<author>
<name>Richard Lyu</name>
<email>richard.lyu@suse.com</email>
</author>
<published>2026-07-07T12:42:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=77585e50049839856baed37d120d4f705a2cf1d0'/>
<id>urn:sha1:77585e50049839856baed37d120d4f705a2cf1d0</id>
<content type='text'>
Add the positive-path host-based tests for the shared GptLib parser
(extracted as part of the parser security hardening), ensuring the
tightened checks in PartitionValidGptTable(), PartitionCheckGptEntry()
and PartitionRestoreGptTable() do not falsely reject well-formed GPTs.

The tests run against an in-memory mock disk and cover accepted
primary/backup headers, boundary but legal header/entry sizes, correct
entry-status flagging on valid entries, and primary/backup restore
round-trips.

Signed-off-by: Richard Lyu &lt;richard.lyu@suse.com&gt;
</content>
</entry>
<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: MemoryBins: Add GoogleTest and README</title>
<updated>2026-06-24T15:53:58+00:00</updated>
<author>
<name>Oliver Smith-Denny</name>
<email>osde@microsoft.com</email>
</author>
<published>2026-01-29T17:56:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=1b39cb1d816a870a44fbeeaaf092773b1b08b179'/>
<id>urn:sha1:1b39cb1d816a870a44fbeeaaf092773b1b08b179</id>
<content type='text'>
This commit adds unit tests and documentation for the Memory Bin
feature.

Signed-off-by: Oliver Smith-Denny &lt;osde@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: Add unit tests for DxeReportStatusCodeLib</title>
<updated>2026-01-14T04:00:20+00:00</updated>
<author>
<name>Joey Vagedes</name>
<email>joeyvagedes@microsoft.com</email>
</author>
<published>2025-12-29T21:28:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=0ab766c6b6ef76d6f4278c6ce7c0ca7cf446a641'/>
<id>urn:sha1:0ab766c6b6ef76d6f4278c6ce7c0ca7cf446a641</id>
<content type='text'>
This commit adds a host based unit test for DxeReportStatusCodeLib
that ensures that the platform cannot invert the TPL on an initial
call to ReportStatusCode functionality.

Signed-off-by: Joey Vagedes &lt;joey.vagedes@gmail.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>
</feed>
