summaryrefslogtreecommitdiffstats
path: root/DynamicTablesPkg/Test/Mock/Library/GoogleTest/Protocol/MockConfigurationManagerProtocol.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'DynamicTablesPkg/Test/Mock/Library/GoogleTest/Protocol/MockConfigurationManagerProtocol.cpp')
-rw-r--r--DynamicTablesPkg/Test/Mock/Library/GoogleTest/Protocol/MockConfigurationManagerProtocol.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/DynamicTablesPkg/Test/Mock/Library/GoogleTest/Protocol/MockConfigurationManagerProtocol.cpp b/DynamicTablesPkg/Test/Mock/Library/GoogleTest/Protocol/MockConfigurationManagerProtocol.cpp
new file mode 100644
index 0000000000..c157ce8ecf
--- /dev/null
+++ b/DynamicTablesPkg/Test/Mock/Library/GoogleTest/Protocol/MockConfigurationManagerProtocol.cpp
@@ -0,0 +1,22 @@
+/** @file
+ Google Test mock for Configuration Manager Protocol
+
+ Copyright (c) Microsoft Corporation.
+ SPDX-License-Identifier: BSD-2-Clause-Patent
+**/
+
+#include <GoogleTest/Protocol/MockConfigurationManagerProtocol.h>
+
+MOCK_INTERFACE_DEFINITION (MockConfigurationManagerProtocol);
+MOCK_FUNCTION_DEFINITION (MockConfigurationManagerProtocol, GetObject, 4, EFIAPI);
+
+EDKII_CONFIGURATION_MANAGER_PROTOCOL CONFIG_MGR_PROTOCOL_INSTANCE = {
+ CREATE_REVISION (1, 0), // Revision
+ GetObject, // GetObject
+ NULL, // SetObject
+ NULL // PlatRepoInfo
+};
+
+extern "C" {
+ EDKII_CONFIGURATION_MANAGER_PROTOCOL *gConfigurationManagerProtocol = &CONFIG_MGR_PROTOCOL_INSTANCE;
+}