Monero
Loading...
Searching...
No Matches
main.cpp File Reference
#include "gtest/gtest.h"
#include "wallet/api/wallet2_api.h"
#include "wallet/wallet2.h"
#include "include_base_utils.h"
#include "common/util.h"
#include <boost/chrono/chrono.hpp>
#include <boost/filesystem.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/asio.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/thread/condition_variable.hpp>
#include <boost/thread/mutex.hpp>
#include <boost/thread/thread.hpp>
#include <iostream>
#include <vector>
#include <atomic>
#include <functional>
Include dependency graph for main.cpp:

Classes

struct  Utils
struct  WalletManagerTest
struct  WalletManagerMainnetTest
struct  WalletTest1
struct  WalletTest2
struct  MyWalletListener

Namespaces

namespace  Consts

Functions

 TEST_F (WalletManagerTest, WalletManagerCreatesWallet)
 TEST_F (WalletManagerTest, WalletManagerOpensWallet)
 TEST_F (WalletManagerTest, WalletMaxAmountAsString)
 TEST_F (WalletManagerTest, WalletAmountFromString)
void open_wallet_helper (Monero::WalletManager *wmgr, Monero::Wallet **wallet, const std::string &pass, boost::mutex *mutex)
 TEST_F (WalletManagerTest, WalletManagerOpensWalletWithPasswordAndReopen)
 TEST_F (WalletManagerTest, WalletManagerStoresWallet)
 TEST_F (WalletManagerTest, WalletManagerMovesWallet)
 TEST_F (WalletManagerTest, WalletManagerChangesPassword)
 TEST_F (WalletManagerTest, WalletManagerRecoversWallet)
 TEST_F (WalletManagerTest, WalletManagerStoresWallet1)
 TEST_F (WalletManagerTest, WalletManagerStoresWallet2)
 TEST_F (WalletManagerTest, WalletManagerStoresWallet3)
 TEST_F (WalletManagerTest, WalletManagerStoresWallet4)
 TEST_F (WalletManagerTest, WalletManagerFindsWallet)
 TEST_F (WalletTest1, WalletGeneratesPaymentId)
 TEST_F (WalletTest1, WalletGeneratesIntegratedAddress)
 TEST_F (WalletTest1, WalletShowsBalance)
 TEST_F (WalletTest1, WalletReturnsCurrentBlockHeight)
 TEST_F (WalletTest1, WalletReturnsDaemonBlockHeight)
 TEST_F (WalletTest1, WalletRefresh)
 TEST_F (WalletTest1, WalletConvertsToString)
 TEST_F (WalletTest1, WalletTransaction)
 TEST_F (WalletTest1, WalletTransactionWithMixin)
 TEST_F (WalletTest1, WalletTransactionWithPriority)
 TEST_F (WalletTest1, WalletHistory)
 TEST_F (WalletTest1, WalletTransactionAndHistory)
 TEST_F (WalletTest1, WalletTransactionWithPaymentId)
 TEST_F (WalletTest2, WalletCallBackRefreshedSync)
 TEST_F (WalletTest2, WalletCallBackRefreshedAsync)
 TEST_F (WalletTest2, WalletCallbackSent)
 TEST_F (WalletTest2, WalletCallbackReceived)
 TEST_F (WalletTest2, WalletCallbackNewBlock)
 TEST_F (WalletManagerMainnetTest, CreateOpenAndRefreshWalletMainNetSync)
 TEST_F (WalletManagerMainnetTest, CreateAndRefreshWalletMainNetAsync)
 TEST_F (WalletManagerMainnetTest, OpenAndRefreshWalletMainNetAsync)
 TEST_F (WalletManagerMainnetTest, RecoverAndRefreshWalletMainNetAsync)
int main (int argc, char **argv)

Variables

const char * Consts::WALLET_NAME = "testwallet"
const char * Consts::WALLET_NAME_MAINNET = "testwallet_mainnet"
const char * Consts::WALLET_NAME_COPY = "testwallet_copy"
const char * Consts::WALLET_NAME_WITH_DIR = "walletdir/testwallet_test"
const char * Consts::WALLET_NAME_WITH_DIR_NON_WRITABLE = "/var/walletdir/testwallet_test"
const char * Consts::WALLET_PASS = "password"
const char * Consts::WALLET_PASS2 = "password22"
const char * Consts::WALLET_LANG = "English"
std::string Consts::WALLETS_ROOT_DIR = "/var/monero/testnet_pvt"
std::string Consts::TESTNET_WALLET1_NAME
std::string Consts::TESTNET_WALLET2_NAME
std::string Consts::TESTNET_WALLET3_NAME
std::string Consts::TESTNET_WALLET4_NAME
std::string Consts::TESTNET_WALLET5_NAME
std::string Consts::TESTNET_WALLET6_NAME
const char * Consts::TESTNET_WALLET_PASS = ""
std::string Consts::CURRENT_SRC_WALLET
std::string Consts::CURRENT_DST_WALLET
const uint64_t Consts::AMOUNT_10XMR = 10000000000000L
const uint64_t Consts::AMOUNT_5XMR = 5000000000000L
const uint64_t Consts::AMOUNT_1XMR = 1000000000000L
const std::string Consts::PAYMENT_ID_EMPTY = ""
std::string Consts::TESTNET_DAEMON_ADDRESS = "localhost:38081"
std::string Consts::MAINNET_DAEMON_ADDRESS = "localhost:18081"

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

◆ open_wallet_helper()

void open_wallet_helper ( Monero::WalletManager * wmgr,
Monero::Wallet ** wallet,
const std::string & pass,
boost::mutex * mutex )

◆ TEST_F() [1/36]

TEST_F ( WalletManagerMainnetTest ,
CreateAndRefreshWalletMainNetAsync  )

◆ TEST_F() [2/36]

TEST_F ( WalletManagerMainnetTest ,
CreateOpenAndRefreshWalletMainNetSync  )

◆ TEST_F() [3/36]

TEST_F ( WalletManagerMainnetTest ,
OpenAndRefreshWalletMainNetAsync  )

◆ TEST_F() [4/36]

TEST_F ( WalletManagerMainnetTest ,
RecoverAndRefreshWalletMainNetAsync  )

◆ TEST_F() [5/36]

TEST_F ( WalletManagerTest ,
WalletAmountFromString  )

◆ TEST_F() [6/36]

TEST_F ( WalletManagerTest ,
WalletManagerChangesPassword  )

◆ TEST_F() [7/36]

TEST_F ( WalletManagerTest ,
WalletManagerCreatesWallet  )

◆ TEST_F() [8/36]

TEST_F ( WalletManagerTest ,
WalletManagerFindsWallet  )

◆ TEST_F() [9/36]

TEST_F ( WalletManagerTest ,
WalletManagerMovesWallet  )

◆ TEST_F() [10/36]

TEST_F ( WalletManagerTest ,
WalletManagerOpensWallet  )

◆ TEST_F() [11/36]

TEST_F ( WalletManagerTest ,
WalletManagerOpensWalletWithPasswordAndReopen  )

◆ TEST_F() [12/36]

TEST_F ( WalletManagerTest ,
WalletManagerRecoversWallet  )

◆ TEST_F() [13/36]

TEST_F ( WalletManagerTest ,
WalletManagerStoresWallet  )

◆ TEST_F() [14/36]

TEST_F ( WalletManagerTest ,
WalletManagerStoresWallet1  )

◆ TEST_F() [15/36]

TEST_F ( WalletManagerTest ,
WalletManagerStoresWallet2  )

◆ TEST_F() [16/36]

TEST_F ( WalletManagerTest ,
WalletManagerStoresWallet3  )

◆ TEST_F() [17/36]

TEST_F ( WalletManagerTest ,
WalletManagerStoresWallet4  )

◆ TEST_F() [18/36]

TEST_F ( WalletManagerTest ,
WalletMaxAmountAsString  )

◆ TEST_F() [19/36]

TEST_F ( WalletTest1 ,
WalletConvertsToString  )

◆ TEST_F() [20/36]

TEST_F ( WalletTest1 ,
WalletGeneratesIntegratedAddress  )

◆ TEST_F() [21/36]

TEST_F ( WalletTest1 ,
WalletGeneratesPaymentId  )

◆ TEST_F() [22/36]

TEST_F ( WalletTest1 ,
WalletHistory  )

◆ TEST_F() [23/36]

TEST_F ( WalletTest1 ,
WalletRefresh  )

◆ TEST_F() [24/36]

TEST_F ( WalletTest1 ,
WalletReturnsCurrentBlockHeight  )

◆ TEST_F() [25/36]

TEST_F ( WalletTest1 ,
WalletReturnsDaemonBlockHeight  )

◆ TEST_F() [26/36]

TEST_F ( WalletTest1 ,
WalletShowsBalance  )

◆ TEST_F() [27/36]

TEST_F ( WalletTest1 ,
WalletTransaction  )

◆ TEST_F() [28/36]

TEST_F ( WalletTest1 ,
WalletTransactionAndHistory  )

◆ TEST_F() [29/36]

TEST_F ( WalletTest1 ,
WalletTransactionWithMixin  )

◆ TEST_F() [30/36]

TEST_F ( WalletTest1 ,
WalletTransactionWithPaymentId  )

◆ TEST_F() [31/36]

TEST_F ( WalletTest1 ,
WalletTransactionWithPriority  )

◆ TEST_F() [32/36]

TEST_F ( WalletTest2 ,
WalletCallbackNewBlock  )

◆ TEST_F() [33/36]

TEST_F ( WalletTest2 ,
WalletCallbackReceived  )

◆ TEST_F() [34/36]

TEST_F ( WalletTest2 ,
WalletCallBackRefreshedAsync  )

◆ TEST_F() [35/36]

TEST_F ( WalletTest2 ,
WalletCallBackRefreshedSync  )

◆ TEST_F() [36/36]

TEST_F ( WalletTest2 ,
WalletCallbackSent  )