Bitcoin Core
27.99.0
P2P Digital Currency
src
test
ipc_test.h
Go to the documentation of this file.
1
// Copyright (c) 2023 The Bitcoin Core developers
2
// Distributed under the MIT software license, see the accompanying
3
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5
#ifndef BITCOIN_TEST_IPC_TEST_H
6
#define BITCOIN_TEST_IPC_TEST_H
7
8
#include <
primitives/transaction.h
>
9
#include <
univalue.h
>
10
11
class
FooImplementation
12
{
13
public
:
14
int
add
(
int
a,
int
b) {
return
a + b; }
15
COutPoint
passOutPoint
(
COutPoint
o) {
return
o; }
16
UniValue
passUniValue
(
UniValue
v) {
return
v; }
17
};
18
19
void
IpcTest
();
20
21
#endif
// BITCOIN_TEST_IPC_TEST_H
COutPoint
An outpoint - a combination of a transaction hash and an index n into its vout.
Definition:
transaction.h:29
FooImplementation
Definition:
ipc_test.h:12
FooImplementation::passOutPoint
COutPoint passOutPoint(COutPoint o)
Definition:
ipc_test.h:15
FooImplementation::add
int add(int a, int b)
Definition:
ipc_test.h:14
FooImplementation::passUniValue
UniValue passUniValue(UniValue v)
Definition:
ipc_test.h:16
UniValue
Definition:
univalue.h:22
IpcTest
void IpcTest()
Unit test that tests execution of IPC calls without actually creating a separate process.
Definition:
ipc_test.cpp:26
transaction.h
univalue.h
Generated on Mon May 6 2024 20:02:18 for Bitcoin Core by
1.9.1