"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test/ares-test-live.cc" between
c-ares-1.17.1.tar.gz and c-ares-1.17.2.tar.gz

About: c-ares is a C library for asynchronous DNS requests (including name resolves).

ares-test-live.cc  (c-ares-1.17.1):ares-test-live.cc  (c-ares-1.17.2)
skipping to change at line 276 skipping to change at line 276
HostCallback, &result); HostCallback, &result);
EXPECT_TRUE(result.done_); EXPECT_TRUE(result.done_);
EXPECT_EQ(ARES_ENOMEM, result.status_); EXPECT_EQ(ARES_ENOMEM, result.status_);
} }
INSTANTIATE_TEST_CASE_P(Modes, DefaultChannelModeTest, INSTANTIATE_TEST_CASE_P(Modes, DefaultChannelModeTest,
::testing::Values("f", "b", "fb", "bf")); ::testing::Values("f", "b", "fb", "bf"));
VIRT_NONVIRT_TEST_F(DefaultChannelTest, LiveSearchA) { VIRT_NONVIRT_TEST_F(DefaultChannelTest, LiveSearchA) {
SearchResult result; SearchResult result;
ares_search(channel_, "www.youtube.com.", ns_c_in, ns_t_a, ares_search(channel_, "www.youtube.com.", C_IN, T_A,
SearchCallback, &result); SearchCallback, &result);
Process(); Process();
EXPECT_TRUE(result.done_); EXPECT_TRUE(result.done_);
EXPECT_EQ(ARES_SUCCESS, result.status_); EXPECT_EQ(ARES_SUCCESS, result.status_);
} }
VIRT_NONVIRT_TEST_F(DefaultChannelTest, LiveSearchEmptyA) { VIRT_NONVIRT_TEST_F(DefaultChannelTest, LiveSearchEmptyA) {
SearchResult result; SearchResult result;
ares_search(channel_, "", ns_c_in, ns_t_a, ares_search(channel_, "", C_IN, T_A,
SearchCallback, &result); SearchCallback, &result);
Process(); Process();
EXPECT_TRUE(result.done_); EXPECT_TRUE(result.done_);
EXPECT_NE(ARES_SUCCESS, result.status_); EXPECT_NE(ARES_SUCCESS, result.status_);
} }
VIRT_NONVIRT_TEST_F(DefaultChannelTest, LiveSearchNS) { VIRT_NONVIRT_TEST_F(DefaultChannelTest, LiveSearchNS) {
SearchResult result; SearchResult result;
ares_search(channel_, "google.com.", ns_c_in, ns_t_ns, ares_search(channel_, "google.com.", C_IN, T_NS,
SearchCallback, &result); SearchCallback, &result);
Process(); Process();
EXPECT_TRUE(result.done_); EXPECT_TRUE(result.done_);
EXPECT_EQ(ARES_SUCCESS, result.status_); EXPECT_EQ(ARES_SUCCESS, result.status_);
} }
VIRT_NONVIRT_TEST_F(DefaultChannelTest, LiveSearchMX) { VIRT_NONVIRT_TEST_F(DefaultChannelTest, LiveSearchMX) {
SearchResult result; SearchResult result;
ares_search(channel_, "google.com.", ns_c_in, ns_t_mx, ares_search(channel_, "google.com.", C_IN, T_MX,
SearchCallback, &result); SearchCallback, &result);
Process(); Process();
EXPECT_TRUE(result.done_); EXPECT_TRUE(result.done_);
EXPECT_EQ(ARES_SUCCESS, result.status_); EXPECT_EQ(ARES_SUCCESS, result.status_);
} }
VIRT_NONVIRT_TEST_F(DefaultChannelTest, LiveSearchTXT) { VIRT_NONVIRT_TEST_F(DefaultChannelTest, LiveSearchTXT) {
SearchResult result; SearchResult result;
ares_search(channel_, "google.com.", ns_c_in, ns_t_txt, ares_search(channel_, "google.com.", C_IN, T_TXT,
SearchCallback, &result); SearchCallback, &result);
Process(); Process();
EXPECT_TRUE(result.done_); EXPECT_TRUE(result.done_);
EXPECT_EQ(ARES_SUCCESS, result.status_); EXPECT_EQ(ARES_SUCCESS, result.status_);
} }
VIRT_NONVIRT_TEST_F(DefaultChannelTest, LiveSearchSOA) { VIRT_NONVIRT_TEST_F(DefaultChannelTest, LiveSearchSOA) {
SearchResult result; SearchResult result;
ares_search(channel_, "google.com.", ns_c_in, ns_t_soa, ares_search(channel_, "google.com.", C_IN, T_SOA,
SearchCallback, &result); SearchCallback, &result);
Process(); Process();
EXPECT_TRUE(result.done_); EXPECT_TRUE(result.done_);
EXPECT_EQ(ARES_SUCCESS, result.status_); EXPECT_EQ(ARES_SUCCESS, result.status_);
} }
VIRT_NONVIRT_TEST_F(DefaultChannelTest, LiveSearchSRV) { VIRT_NONVIRT_TEST_F(DefaultChannelTest, LiveSearchSRV) {
SearchResult result; SearchResult result;
ares_search(channel_, "_imap._tcp.gmail.com.", ns_c_in, ns_t_srv, ares_search(channel_, "_imap._tcp.gmail.com.", C_IN, T_SRV,
SearchCallback, &result); SearchCallback, &result);
Process(); Process();
EXPECT_TRUE(result.done_); EXPECT_TRUE(result.done_);
EXPECT_EQ(ARES_SUCCESS, result.status_); EXPECT_EQ(ARES_SUCCESS, result.status_);
} }
VIRT_NONVIRT_TEST_F(DefaultChannelTest, LiveSearchANY) { VIRT_NONVIRT_TEST_F(DefaultChannelTest, LiveSearchANY) {
SearchResult result; SearchResult result;
ares_search(channel_, "google.com.", ns_c_in, ns_t_any, ares_search(channel_, "google.com.", C_IN, T_ANY,
SearchCallback, &result); SearchCallback, &result);
Process(); Process();
EXPECT_TRUE(result.done_); EXPECT_TRUE(result.done_);
EXPECT_EQ(ARES_SUCCESS, result.status_); EXPECT_EQ(ARES_SUCCESS, result.status_);
} }
VIRT_NONVIRT_TEST_F(DefaultChannelTest, LiveGetNameInfoV4) { VIRT_NONVIRT_TEST_F(DefaultChannelTest, LiveGetNameInfoV4) {
NameInfoResult result; NameInfoResult result;
struct sockaddr_in sockaddr; struct sockaddr_in sockaddr;
memset(&sockaddr, 0, sizeof(sockaddr)); memset(&sockaddr, 0, sizeof(sockaddr));
 End of changes. 8 change blocks. 
8 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)