Skip to content

Commit

Permalink
Merge pull request #381 from breadwallet/feature/CORE-757
Browse files Browse the repository at this point in the history
CORE-757: In test sources, use explicit header paths.
  • Loading branch information
Ed Gamble authored Nov 27, 2019
2 parents d082070 + 68714d0 commit 5bd6137
Show file tree
Hide file tree
Showing 13 changed files with 50 additions and 48 deletions.
43 changes: 23 additions & 20 deletions bitcoin/test.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,28 +23,31 @@
// THE SOFTWARE.

#include "support/BRCrypto.h"
#include "BRBloomFilter.h"
#include "BRMerkleBlock.h"
#include "BRWallet.h"
#include "BRKey.h"
#include "BRBIP38Key.h"
#include "BRKeyECIES.h"
#include "BRAddress.h"
#include "BRBase58.h"
#include "BRBech32.h"
#include "BRBIP39Mnemonic.h"
#include "BRBIP39WordsEn.h"
#include "BRPeer.h"
#include "BRPeerManager.h"
#include "BRChainParams.h"
#include "support/BRInt.h"
#include "support/BRArray.h"
#include "support/BRSet.h"
#include "support/BRKey.h"
#include "support/BRKeyECIES.h"
#include "support/BRAddress.h"
#include "support/BRBase58.h"
#include "support/BRBech32.h"
#include "support/BRBIP39Mnemonic.h"
#include "support/BRBIP39WordsEn.h"

#include "bcash/BRBCashParams.h"
#include "bcash/BRBCashAddr.h"
#include "BRPaymentProtocol.h"
#include "BRInt.h"
#include "BRArray.h"
#include "BRSet.h"
#include "BRTransaction.h"
#include "BRWalletManager.h"

#include "bitcoin/BRBloomFilter.h"
#include "bitcoin/BRMerkleBlock.h"
#include "bitcoin/BRWallet.h"
#include "bitcoin/BRBIP38Key.h"
#include "bitcoin/BRPeer.h"
#include "bitcoin/BRPeerManager.h"
#include "bitcoin/BRChainParams.h"
#include "bitcoin/BRPaymentProtocol.h"
#include "bitcoin/BRTransaction.h"
#include "bitcoin/BRWalletManager.h"

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Expand Down
12 changes: 6 additions & 6 deletions bitcoin/testBwm.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
#include "bcash/BRBCashParams.h"
#include "bitcoin/BRChainParams.h"

#include "BRArray.h"
#include "BRBIP39Mnemonic.h"
#include "BRPeerManager.h"
#include "BRTransaction.h"
#include "BRWallet.h"
#include "BRWalletManager.h"
#include "support/BRArray.h"
#include "support/BRBIP39Mnemonic.h"
#include "bitcoin/BRPeerManager.h"
#include "bitcoin/BRTransaction.h"
#include "bitcoin/BRWallet.h"
#include "bitcoin/BRWalletManager.h"

#ifdef __ANDROID__
#include <android/log.h>
Expand Down
2 changes: 1 addition & 1 deletion ethereum/base/testBase.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <stdio.h>
#include <assert.h>
#include "support/BRCrypto.h"
#include "BREthereumBase.h"
#include "ethereum/base/BREthereumBase.h"

static void
runEtherParseTests () {
Expand Down
2 changes: 1 addition & 1 deletion ethereum/blockchain/testBc.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include "BREthereumBlockChain.h"
#include "ethereum/blockchain/BREthereumBlockChain.h"

//
// Bloom Test
Expand Down
4 changes: 2 additions & 2 deletions ethereum/contract/testContract.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
#include <stdio.h>
#include <assert.h>

#include "BREthereumContract.h"
#include "BREthereumToken.h"
#include "ethereum/contract/BREthereumContract.h"
#include "ethereum/contract/BREthereumToken.h"

#if defined (BITCOIN_TESTNET)
const char *tokenBRDAddress = "0x7108ca7c4718efa810457f228305c9c71390931a"; // testnet
Expand Down
4 changes: 2 additions & 2 deletions ethereum/event/testEvent.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
#include <stdio.h>
#include <assert.h>
#include <pthread.h>
#include "BREvent.h"
#include "BREventAlarm.h"
#include "ethereum/event/BREvent.h"
#include "ethereum/event/BREventAlarm.h"

static pthread_cond_t testEventAlarmConditional = PTHREAD_COND_INITIALIZER;
static pthread_mutex_t testEventAlarmMutex = PTHREAD_MUTEX_INITIALIZER;
Expand Down
2 changes: 1 addition & 1 deletion ethereum/ewm/testEwm.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include <assert.h>
#include <unistd.h>
#include "ethereum/event/BREventAlarm.h"
#include "BREthereumEWMPrivate.h"
#include "ethereum/ewm/BREthereumEWMPrivate.h"

//
// EWM Tests
Expand Down
6 changes: 3 additions & 3 deletions ethereum/les/testLES.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
#include "support/BRCrypto.h"
#include "ethereum/base/BREthereumHash.h"
#include "ethereum/blockchain/BREthereumNetwork.h"
#include "BREthereumLESRandom.h"
#include "BREthereumLES.h"
#include "BREthereumNode.h"
#include "ethereum/les/BREthereumLESRandom.h"
#include "ethereum/les/BREthereumLES.h"
#include "ethereum/les/BREthereumNode.h"

#include "ethereum/BREthereum.h"

Expand Down
2 changes: 1 addition & 1 deletion ethereum/rlp/testRlp.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include <assert.h>
#include <string.h>
#include "ethereum/util/BRUtil.h"
#include "BRRlp.h"
#include "ethereum/rlp/BRRlp.h"

static void
showHex (uint8_t *source, size_t sourceLen) {
Expand Down
4 changes: 2 additions & 2 deletions ethereum/test.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
#include "ethereum/ewm/BREthereumAccount.h"
#include "ethereum/ewm/BREthereumWallet.h"
#include "ethereum/ewm/BREthereumTransfer.h"
#include "BREthereum.h"
#include "ethereum/BREthereum.h"

#include "test.h"
#include "ethereum/test.h"

extern const char *tokenBRDAddress;

Expand Down
2 changes: 1 addition & 1 deletion ethereum/util/testUtil.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <string.h>
#include <assert.h>
#include <math.h>
#include "BRUtil.h"
#include "ethereum/util/BRUtil.h"

//
// Math Tests
Expand Down
11 changes: 5 additions & 6 deletions ripple/testRipple.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,13 @@
#include <string.h>
#include <stdio.h>
#include <unistd.h>
#include "BRRipple.h"
#include "BRRippleBase58.h"
#include "BRCrypto.h"
#include "support/BRBIP32Sequence.h"
#include "support/BRBIP39WordsEn.h"
#include "BRKey.h"
#include "testRippleTxList1.h"
#include "testRippleTxList2.h"
#include "support/BRKey.h"
#include "ripple/BRRipple.h"
#include "ripple/BRRippleBase58.h"
#include "ripple/testRippleTxList1.h"
#include "ripple/testRippleTxList2.h"

int debug_log = 0;

Expand Down
4 changes: 2 additions & 2 deletions support/testSup.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
#include <unistd.h>
#include <assert.h>

#include "BRFileService.h"
#include "BRAssert.h"
#include "support/BRFileService.h"
#include "support/BRAssert.h"

/// MARK: - Helpers

Expand Down

0 comments on commit 5bd6137

Please sign in to comment.