#include "gtest/gtest.h"
#include "wallet/wallet2.h"
#include "common/dns_utils.h"
#include "simplewallet/simplewallet.h"
#include <string>
Go to the source code of this file.
|
| | TEST (AddressFromTXT, Success) |
| | TEST (AddressFromTXT, Failure) |
| | TEST (AddressFromURL, Success) |
| | TEST (AddressFromURL, Failure) |
◆ TEST() [1/4]
| TEST |
( |
AddressFromTXT | , |
|
|
Failure | ) |
Definition at line 72 of file address_from_url.cpp.
73{
74 std::string txtr = "oa1:etn recipient_address=not a real address";
75
77
79
80 txtr += ";";
81
84}
#define ASSERT_STREQ(s1, s2)
◆ TEST() [2/4]
| TEST |
( |
AddressFromTXT | , |
|
|
Success | ) |
Definition at line 39 of file address_from_url.cpp.
40{
41 std::string addr = "etnjwQwwEY65dhSMfKto64GgY7j7q2RUSZP1r8rXZ615J4egUC596R4crvZ5woWWTWBUztnKMUudzQ22E37LHiV48XWeJDFkkY";
42
43 std::string txtr = "oa1:etn";
44 txtr += " recipient_address=";
45 txtr += addr;
46 txtr += ";";
47
49
51
52 std::string txtr2 = "foobar";
53
54 txtr2 += txtr;
55
56 txtr2 += "more foobar";
57
59
61
62 std::string txtr3 = "foobar oa1:etn tx_description=\"Donation for Electroneum Development Fund\"; ";
63 txtr3 += "recipient_address=";
64 txtr3 += addr;
65 txtr3 += "; foobar";
66
68
70}
#define EXPECT_STREQ(s1, s2)
◆ TEST() [3/4]
| TEST |
( |
AddressFromURL | , |
|
|
Failure | ) |
Definition at line 109 of file address_from_url.cpp.
110{
111 bool dnssec_result = false;
112
114
115
117
119}
#define ASSERT_EQ(val1, val2)
#define ASSERT_TRUE(condition)
◆ TEST() [4/4]
| TEST |
( |
AddressFromURL | , |
|
|
Success | ) |
Definition at line 86 of file address_from_url.cpp.
87{
89
90 bool dnssec_result = false;
91
93
95 if (addresses.size() == 1)
96 {
98 }
99
100
103 if (addresses.size() == 1)
104 {
106 }
107}
#define EXPECT_EQ(val1, val2)
constexpr const char ETN_DONATION_ADDR[]