Line data Source code
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 <script/script.h>
10 : #include <univalue.h>
11 : #include <util/fs.h>
12 : #include <validation.h>
13 :
14 : class FooImplementation
15 : {
16 : public:
17 1 : int add(int a, int b) { return a + b; }
18 1 : COutPoint passOutPoint(COutPoint o) { return o; }
19 1 : UniValue passUniValue(UniValue v) { return v; }
20 1 : CTransactionRef passTransaction(CTransactionRef t) { return t; }
21 1 : std::vector<char> passVectorChar(std::vector<char> v) { return v; }
22 : BlockValidationState passBlockState(BlockValidationState s) { return s; }
23 1 : CScript passScript(CScript s) { return s; }
24 : };
25 :
26 : void IpcPipeTest();
27 : void IpcSocketPairTest();
28 : void IpcSocketTest(const fs::path& datadir);
29 :
30 : #endif // BITCOIN_TEST_IPC_TEST_H
|