30 #include <boost/filesystem.hpp> 31 #include "gtest/gtest.h" 49 catch (
const std::exception& e)
51 LOG_ERROR(
"failed to generate wallet: " << e.what());
75 EXPECT_EQ(test_label, w1.get_subaddress_label(subaddress_index));
81 w1.add_subaddress(0, label);
82 EXPECT_EQ(label, w1.get_subaddress_label({0, 1}));
89 w1.get_subaddress_label({1,0});
91 catch(
const std::exception& e)
97 w1.get_subaddress_label({0,2});
99 catch(
const std::exception& e)
#define EXPECT_STREQ(s1, s2)
epee::mlocked< tools::scrubbed< ec_scalar > > secret_key
TEST_F(WalletSubaddress, GetSubaddressLabel)
const cryptonote::subaddress_index subaddress_index
const std::string password
crypto::secret_key recovery_key
#define EXPECT_EQ(val1, val2)
const std::string test_label