File: MockConfigurationManagerProtocol.cpp

package info (click to toggle)
edk2 2025.11-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 338,436 kB
  • sloc: ansic: 2,166,377; asm: 270,725; perl: 235,301; python: 149,900; sh: 34,744; cpp: 23,311; makefile: 3,334; pascal: 1,602; xml: 806; lisp: 35; ruby: 16; sed: 6; tcl: 4
file content (22 lines) | stat: -rw-r--r-- 743 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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;
}