Browse Source

Update copyrights in c++ tests

danger
Duke Leto 4 years ago
parent
commit
e07d870661
  1. 1
      src/test/Checkpoints_tests.cpp
  2. 9
      src/test/DoS_tests.cpp
  3. 1
      src/test/accounting_tests.cpp
  4. 1
      src/test/addrman_tests.cpp
  5. 1
      src/test/alert_tests.cpp
  6. 1
      src/test/allocator_tests.cpp
  7. 1
      src/test/arith_uint256_tests.cpp
  8. 1
      src/test/base32_tests.cpp
  9. 1
      src/test/base58_tests.cpp
  10. 1
      src/test/base64_tests.cpp
  11. 1
      src/test/bech32_tests.cpp
  12. 1
      src/test/bip32_tests.cpp
  13. 5
      src/test/bitcoin-util-test.py
  14. 1
      src/test/bloom_tests.cpp
  15. 1
      src/test/checkblock_tests.cpp
  16. 1
      src/test/compress_tests.cpp
  17. 1
      src/test/convertbits_tests.cpp
  18. 1
      src/test/crypto_tests.cpp
  19. 1
      src/test/dbwrapper_tests.cpp
  20. 1
      src/test/equihash_tests.cpp
  21. 1
      src/test/getarg_tests.cpp
  22. 1
      src/test/hash_tests.cpp
  23. 4
      src/test/key_tests.cpp
  24. 1
      src/test/main_tests.cpp
  25. 3
      src/test/mempool_tests.cpp
  26. 1
      src/test/miner_tests.cpp
  27. 1
      src/test/mruset_tests.cpp
  28. 1
      src/test/multisig_tests.cpp
  29. 1
      src/test/netbase_tests.cpp
  30. 1
      src/test/pmt_tests.cpp
  31. 1
      src/test/policyestimator_tests.cpp
  32. 1
      src/test/pow_tests.cpp
  33. 1
      src/test/prevector_tests.cpp
  34. 1
      src/test/raii_event_tests.cpp
  35. 1
      src/test/reverselock_tests.cpp
  36. 1
      src/test/rpc_tests.cpp
  37. 1
      src/test/sanity_tests.cpp
  38. 1
      src/test/scheduler_tests.cpp
  39. 3
      src/test/script_P2PKH_tests.cpp
  40. 1
      src/test/script_P2SH_tests.cpp
  41. 1
      src/test/script_tests.cpp
  42. 1
      src/test/scriptnum_tests.cpp
  43. 1
      src/test/serialize_tests.cpp
  44. 3
      src/test/sha256compress_tests.cpp
  45. 1
      src/test/sighash_tests.cpp
  46. 1
      src/test/sigopcount_tests.cpp
  47. 1
      src/test/skiplist_tests.cpp
  48. 1
      src/test/test_bitcoin.cpp
  49. 1
      src/test/timedata_tests.cpp
  50. 1
      src/test/torcontrol_tests.cpp
  51. 1
      src/test/uint256_tests.cpp
  52. 1
      src/test/univalue_tests.cpp
  53. 4
      src/test/util_tests.cpp
  54. 7
      src/wallet/gtest/test_transaction.cpp
  55. 5
      src/wallet/gtest/test_wallet.cpp
  56. 5
      src/wallet/gtest/test_wallet_zkeys.cpp

1
src/test/Checkpoints_tests.cpp

@ -1,4 +1,5 @@
// Copyright (c) 2011-2013 The Bitcoin Core developers
// Copyright (c) 2019-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html

9
src/test/DoS_tests.cpp

@ -1,12 +1,8 @@
// Copyright (c) 2019-2020 The Hush developers
// Copyright (c) 2011-2014 The Bitcoin Core developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
//
// Unit tests for denial-of-service detection/prevention code
//
#include "consensus/upgrades.h"
#include "keystore.h"
@ -16,11 +12,8 @@
#include "script/sign.h"
#include "serialize.h"
#include "util.h"
#include "test/test_bitcoin.h"
#include <stdint.h>
#include <boost/assign/list_of.hpp> // for 'map_list_of()'
#include <boost/date_time/posix_time/posix_time_types.hpp>
#include <boost/foreach.hpp>

1
src/test/accounting_tests.cpp

@ -1,4 +1,5 @@
// Copyright (c) 2012-2014 The Bitcoin Core developers
// Copyright (c) 2019-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html

1
src/test/addrman_tests.cpp

@ -1,4 +1,5 @@
// Copyright (c) 2012-2013 The Bitcoin Core developers
// Copyright (c) 2019-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
#include "addrman.h"

1
src/test/alert_tests.cpp

@ -1,4 +1,5 @@
// Copyright (c) 2013 The Bitcoin Core developers
// Copyright (c) 2019-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html

1
src/test/allocator_tests.cpp

@ -1,4 +1,5 @@
// Copyright (c) 2012-2013 The Bitcoin Core developers
// Copyright (c) 2019-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html

1
src/test/arith_uint256_tests.cpp

@ -1,4 +1,5 @@
// Copyright (c) 2011-2013 The Bitcoin Core developers
// Copyright (c) 2019-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html

1
src/test/base32_tests.cpp

@ -1,4 +1,5 @@
// Copyright (c) 2012-2013 The Bitcoin Core developers
// Copyright (c) 2019-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html

1
src/test/base58_tests.cpp

@ -1,4 +1,5 @@
// Copyright (c) 2011-2014 The Bitcoin Core developers
// Copyright (c) 2019-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html

1
src/test/base64_tests.cpp

@ -1,4 +1,5 @@
// Copyright (c) 2011-2013 The Bitcoin Core developers
// Copyright (c) 2019-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html

1
src/test/bech32_tests.cpp

@ -1,4 +1,5 @@
// Copyright (c) 2017 Pieter Wuille
// Copyright (c) 2019-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html

1
src/test/bip32_tests.cpp

@ -1,4 +1,5 @@
// Copyright (c) 2013 The Bitcoin Core developers
// Copyright (c) 2019-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html

5
src/test/bitcoin-util-test.py

@ -1,7 +1,8 @@
#!/usr/bin/env python
# Copyright (c) 2019-2020 The Hush developers
# Copyright 2014 BitPay, Inc.
# Distributed under the MIT software license, see the accompanying
# file COPYING or https://www.opensource.org/licenses/mit-license.php
# Distributed under the GPLv3 software license, see the accompanying
# file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
import os
import bctest

1
src/test/bloom_tests.cpp

@ -1,4 +1,5 @@
// Copyright (c) 2012-2013 The Bitcoin Core developers
// Copyright (c) 2019-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html

1
src/test/checkblock_tests.cpp

@ -1,4 +1,5 @@
// Copyright (c) 2013-2014 The Bitcoin Core developers
// Copyright (c) 2019-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html

1
src/test/compress_tests.cpp

@ -1,4 +1,5 @@
// Copyright (c) 2012-2013 The Bitcoin Core developers
// Copyright (c) 2019-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html

1
src/test/convertbits_tests.cpp

@ -1,3 +1,4 @@
// Copyright (c) 2019-2020 The Hush developers
// Copyright (c) 2018 The Zcash developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html

1
src/test/crypto_tests.cpp

@ -1,3 +1,4 @@
// Copyright (c) 2019-2020 The Hush developers
// Copyright (c) 2014 The Bitcoin Core developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html

1
src/test/dbwrapper_tests.cpp

@ -1,3 +1,4 @@
// Copyright (c) 2019-2020 The Hush developers
// Copyright (c) 2018 The Zcash developers
// Copyright (c) 2012-2017 The Bitcoin Core developers
// Distributed under the GPLv3 software license, see the accompanying

1
src/test/equihash_tests.cpp

@ -1,3 +1,4 @@
// Copyright (c) 2019-2020 The Hush developers
// Copyright (c) 2016 Jack Grigg
// Copyright (c) 2016 The Zcash developers
// Distributed under the GPLv3 software license, see the accompanying

1
src/test/getarg_tests.cpp

@ -1,3 +1,4 @@
// Copyright (c) 2019-2020 The Hush developers
// Copyright (c) 2012-2013 The Bitcoin Core developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html

1
src/test/hash_tests.cpp

@ -1,3 +1,4 @@
// Copyright (c) 2019-2020 The Hush developers
// Copyright (c) 2013 The Bitcoin Core developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html

4
src/test/key_tests.cpp

@ -4,7 +4,6 @@
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
#include "key.h"
#include "chainparams.h"
#include "key_io.h"
#include "script/script.h"
@ -12,12 +11,9 @@
#include "util.h"
#include "utilstrencodings.h"
#include "test/test_bitcoin.h"
#include "zcash/Address.hpp"
#include <string>
#include <vector>
#include <boost/test/unit_test.hpp>
using namespace std;

1
src/test/main_tests.cpp

@ -1,3 +1,4 @@
// Copyright (c) 2019-2020 The Hush developers
// Copyright (c) 2014 The Bitcoin Core developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html

3
src/test/mempool_tests.cpp

@ -1,3 +1,4 @@
// Copyright (c) 2019-2020 The Hush developers
// Copyright (c) 2011-2014 The Bitcoin Core developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
@ -6,9 +7,7 @@
#include "main.h"
#include "txmempool.h"
#include "util.h"
#include "test/test_bitcoin.h"
#include <boost/test/unit_test.hpp>
#include <list>

1
src/test/miner_tests.cpp

@ -1,3 +1,4 @@
// Copyright (c) 2019-2020 The Hush developers
// Copyright (c) 2011-2014 The Bitcoin Core developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html

1
src/test/mruset_tests.cpp

@ -1,3 +1,4 @@
// Copyright (c) 2019-2020 The Hush developers
// Copyright (c) 2012-2013 The Bitcoin Core developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html

1
src/test/multisig_tests.cpp

@ -1,3 +1,4 @@
// Copyright (c) 2019-2020 The Hush developers
// Copyright (c) 2011-2013 The Bitcoin Core developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html

1
src/test/netbase_tests.cpp

@ -1,3 +1,4 @@
// Copyright (c) 2019-2020 The Hush developers
// Copyright (c) 2012-2013 The Bitcoin Core developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html

1
src/test/pmt_tests.cpp

@ -1,3 +1,4 @@
// Copyright (c) 2019-2020 The Hush developers
// Copyright (c) 2012-2013 The Bitcoin Core developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html

1
src/test/policyestimator_tests.cpp

@ -1,3 +1,4 @@
// Copyright (c) 2019-2020 The Hush developers
// Copyright (c) 2011-2015 The Bitcoin Core developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html

1
src/test/pow_tests.cpp

@ -1,3 +1,4 @@
// Copyright (c) 2019-2020 The Hush developers
// Copyright (c) 2015 The Bitcoin Core developers
// Distributed under the GPLv3/X11 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html

1
src/test/prevector_tests.cpp

@ -1,3 +1,4 @@
// Copyright (c) 2019-2020 The Hush developers
// Copyright (c) 2015 The Bitcoin Core developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html

1
src/test/raii_event_tests.cpp

@ -1,3 +1,4 @@
// Copyright (c) 2019-2020 The Hush developers
// Copyright (c) 2016 The Bitcoin Core developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html

1
src/test/reverselock_tests.cpp

@ -1,3 +1,4 @@
// Copyright (c) 2019-2020 The Hush developers
// Copyright (c) 2015 The Bitcoin Core developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html

1
src/test/rpc_tests.cpp

@ -1,3 +1,4 @@
// Copyright (c) 2019-2020 The Hush developers
// Copyright (c) 2012-2013 The Bitcoin Core developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html

1
src/test/sanity_tests.cpp

@ -1,3 +1,4 @@
// Copyright (c) 2019-2020 The Hush developers
// Copyright (c) 2012-2013 The Bitcoin Core developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html

1
src/test/scheduler_tests.cpp

@ -1,3 +1,4 @@
// Copyright (c) 2019-2020 The Hush developers
// Copyright (c) 2012-2013 The Bitcoin Core developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html

3
src/test/script_P2PKH_tests.cpp

@ -1,3 +1,4 @@
// Copyright (c) 2019-2020 The Hush developers
// Copyright (c) 2012-2015 The Bitcoin Core developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
@ -56,4 +57,4 @@ BOOST_AUTO_TEST_CASE(IsPayToPublicKeyHash)
}
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()

1
src/test/script_P2SH_tests.cpp

@ -1,3 +1,4 @@
// Copyright (c) 2019-2020 The Hush developers
// Copyright (c) 2012-2013 The Bitcoin Core developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html

1
src/test/script_tests.cpp

@ -1,3 +1,4 @@
// Copyright (c) 2019-2020 The Hush developers
// Copyright (c) 2011-2014 The Bitcoin Core developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html

1
src/test/scriptnum_tests.cpp

@ -1,3 +1,4 @@
// Copyright (c) 2019-2020 The Hush developers
// Copyright (c) 2012-2014 The Bitcoin Core developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html

1
src/test/serialize_tests.cpp

@ -1,3 +1,4 @@
// Copyright (c) 2019-2020 The Hush developers
// Copyright (c) 2012-2013 The Bitcoin Core developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html

3
src/test/sha256compress_tests.cpp

@ -1,3 +1,6 @@
// Copyright (c) 2019-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
#include "test/test_bitcoin.h"
#include "crypto/sha256.h"
#include "uint256.h"

1
src/test/sighash_tests.cpp

@ -1,3 +1,4 @@
// Copyright (c) 2019-2020 The Hush developers
// Copyright (c) 2013 The Bitcoin Core developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html

1
src/test/sigopcount_tests.cpp

@ -1,3 +1,4 @@
// Copyright (c) 2019-2020 The Hush developers
// Copyright (c) 2012-2013 The Bitcoin Core developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html

1
src/test/skiplist_tests.cpp

@ -1,3 +1,4 @@
// Copyright (c) 2019-2020 The Hush developers
// Copyright (c) 2014 The Bitcoin Core developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html

1
src/test/test_bitcoin.cpp

@ -1,3 +1,4 @@
// Copyright (c) 2019-2020 The Hush developers
// Copyright (c) 2011-2013 The Bitcoin Core developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html

1
src/test/timedata_tests.cpp

@ -1,3 +1,4 @@
// Copyright (c) 2019-2020 The Hush developers
// Copyright (c) 2011-2014 The Bitcoin Core developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html

1
src/test/torcontrol_tests.cpp

@ -1,3 +1,4 @@
// Copyright (c) 2019-2020 The Hush developers
// Copyright (c) 2017 The Zcash developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html

1
src/test/uint256_tests.cpp

@ -1,3 +1,4 @@
// Copyright (c) 2019-2020 The Hush developers
// Copyright (c) 2011-2013 The Bitcoin Core developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html

1
src/test/univalue_tests.cpp

@ -1,3 +1,4 @@
// Copyright (c) 2019-2020 The Hush developers
// Copyright 2014 BitPay, Inc.
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html

4
src/test/util_tests.cpp

@ -1,9 +1,9 @@
// Copyright (c) 2019-2020 The Hush developers
// Copyright (c) 2011-2014 The Bitcoin Core developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
#include "util.h"
#include "clientversion.h"
#include "primitives/transaction.h"
#include "random.h"
@ -11,10 +11,8 @@
#include "utilstrencodings.h"
#include "utilmoneystr.h"
#include "test/test_bitcoin.h"
#include <stdint.h>
#include <vector>
#include <boost/test/unit_test.hpp>
using namespace std;

7
src/wallet/gtest/test_transaction.cpp

@ -1,5 +1,7 @@
// Copyright (c) 2019-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
#include <gtest/gtest.h>
#include "primitives/transaction.h"
#include "zcash/Note.hpp"
#include "zcash/Address.hpp"
@ -8,6 +10,8 @@ extern ZCJoinSplit* params;
extern int GenZero(int n);
extern int GenMax(int n);
//TODO: Sapling transaction
/*
TEST(Transaction, JSDescriptionRandomized) {
// construct a merkle tree
ZCIncrementalMerkleTree merkleTree;
@ -88,3 +92,4 @@ TEST(Transaction, JSDescriptionRandomized) {
EXPECT_EQ(expectedOutputMap, outputMap);
}
}
*/

5
src/wallet/gtest/test_wallet.cpp

@ -1,7 +1,9 @@
// Copyright (c) 2019-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <sodium.h>
#include "base58.h"
#include "chainparams.h"
#include "key_io.h"
@ -14,7 +16,6 @@
#include "zcash/JoinSplit.hpp"
#include "zcash/Note.hpp"
#include "zcash/NoteEncryption.hpp"
#include <boost/filesystem.hpp>
using ::testing::Return;

5
src/wallet/gtest/test_wallet_zkeys.cpp

@ -1,10 +1,11 @@
// Copyright (c) 2019-2020 The Hush developers
// Distributed under the GPLv3 software license, see the accompanying
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
#include <gtest/gtest.h>
#include "zcash/Address.hpp"
#include "wallet/wallet.h"
#include "wallet/walletdb.h"
#include "util.h"
#include <boost/filesystem.hpp>
/**

Loading…
Cancel
Save