Software APIs
sw
device
silicon_creator
rom
mock_boot_policy_ptrs.h
1
// Copyright lowRISC contributors (OpenTitan project).
2
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
3
// SPDX-License-Identifier: Apache-2.0
4
5
#ifndef OPENTITAN_SW_DEVICE_SILICON_CREATOR_ROM_MOCK_BOOT_POLICY_PTRS_H_
6
#define OPENTITAN_SW_DEVICE_SILICON_CREATOR_ROM_MOCK_BOOT_POLICY_PTRS_H_
7
8
#include "sw/device/lib/base/global_mock.h"
9
#include "sw/device/silicon_creator/rom/boot_policy_ptrs.h"
10
#include "sw/device/silicon_creator/testing/rom_test.h"
11
12
namespace
rom_test {
13
namespace
internal {
14
15
/**
16
* Mock class for boot_policy_ptrs.h
17
*/
18
class
MockBootPolicyPtrs
:
public
global_mock::GlobalMock
<MockBootPolicyPtrs> {
19
public
:
20
MOCK_METHOD(
const
manifest_t
*, ManifestA, ());
21
MOCK_METHOD(
const
manifest_t
*, ManifestB, ());
22
};
23
24
}
// namespace internal
25
26
using
MockBootPolicyPtrs = testing::StrictMock<internal::MockBootPolicyPtrs>;
27
28
}
// namespace rom_test
29
30
#endif
// OPENTITAN_SW_DEVICE_SILICON_CREATOR_ROM_MOCK_BOOT_POLICY_PTRS_H_
Return to
OpenTitan Documentation