summaryrefslogtreecommitdiff
path: root/include/mock/rollback_mock.h
blob: 576f87e6b93eadbb93fb74437149bb7c1b34598b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* Copyright 2019 The Chromium OS Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

/**
 * @file
 * @brief Controls for the mock rollback block library
 */

#ifndef __MOCK_ROLLBACK_MOCK_H
#define __MOCK_ROLLBACK_MOCK_H

#include <stdbool.h>

struct mock_ctrl_rollback {
	bool get_secret_fail;
};

#define MOCK_CTRL_DEFAULT_ROLLBACK             \
(struct mock_ctrl_rollback) {                  \
	.get_secret_fail = false,              \
}

extern struct mock_ctrl_rollback mock_ctrl_rollback;

#endif  /* __MOCK_ROLLBACK_MOCK_H */