|
@@ -26,7 +26,7 @@ struct DnsHeaderTestParams
|
26
|
26
|
bool flagNonAuthenticatedAcceptable;
|
27
|
27
|
quint8 flagReplyCode;
|
28
|
28
|
|
29
|
|
- quint16 questionCount;
|
|
29
|
+ quint16 queryCount;
|
30
|
30
|
quint16 answerCount;
|
31
|
31
|
quint16 authorityCount;
|
32
|
32
|
quint16 additionalCount;
|
|
@@ -58,7 +58,7 @@ TEST_P(DnsHeaderTest, parseAndGetters)
|
58
|
58
|
ASSERT_EQ(header.isNonAuthenticatedAcceptable(), params.flagNonAuthenticatedAcceptable);
|
59
|
59
|
ASSERT_EQ(header.getReplyCode(), params.flagReplyCode);
|
60
|
60
|
|
61
|
|
- ASSERT_EQ(header.getQuestionCount(), params.questionCount);
|
|
61
|
+ ASSERT_EQ(header.getQueryCount(), params.queryCount);
|
62
|
62
|
ASSERT_EQ(header.getAnswerCount(), params.answerCount);
|
63
|
63
|
ASSERT_EQ(header.getAuthorityCount(), params.authorityCount);
|
64
|
64
|
ASSERT_EQ(header.getAdditionalCount(), params.additionalCount);
|
|
@@ -81,7 +81,7 @@ TEST_P(DnsHeaderTest, settersAndGetters1)
|
81
|
81
|
|
82
|
82
|
header.setId(params.id);
|
83
|
83
|
header.setFlags(params.flags);
|
84
|
|
- header.setQuestionCount(params.questionCount);
|
|
84
|
+ header.setQueryCount(params.queryCount);
|
85
|
85
|
header.setAnswerCount(params.answerCount);
|
86
|
86
|
header.setAuthorityCount(params.authorityCount);
|
87
|
87
|
header.setAdditionalCount(params.additionalCount);
|
|
@@ -99,7 +99,7 @@ TEST_P(DnsHeaderTest, settersAndGetters1)
|
99
|
99
|
ASSERT_EQ(header.isNonAuthenticatedAcceptable(), params.flagNonAuthenticatedAcceptable);
|
100
|
100
|
ASSERT_EQ(header.getReplyCode(), params.flagReplyCode);
|
101
|
101
|
|
102
|
|
- ASSERT_EQ(header.getQuestionCount(), params.questionCount);
|
|
102
|
+ ASSERT_EQ(header.getQueryCount(), params.queryCount);
|
103
|
103
|
ASSERT_EQ(header.getAnswerCount(), params.answerCount);
|
104
|
104
|
ASSERT_EQ(header.getAuthorityCount(), params.authorityCount);
|
105
|
105
|
ASSERT_EQ(header.getAdditionalCount(), params.additionalCount);
|
|
@@ -130,7 +130,7 @@ TEST_P(DnsHeaderTest, settersAndGetters2)
|
130
|
130
|
header.setIsAnswerAuthenticated(params.flagAnswerAuthenticated);
|
131
|
131
|
header.setNonAuthenticatedAcceptable(params.flagNonAuthenticatedAcceptable);
|
132
|
132
|
header.setReplyCode(params.flagReplyCode);
|
133
|
|
- header.setQuestionCount(params.questionCount);
|
|
133
|
+ header.setQueryCount(params.queryCount);
|
134
|
134
|
header.setAnswerCount(params.answerCount);
|
135
|
135
|
header.setAuthorityCount(params.authorityCount);
|
136
|
136
|
header.setAdditionalCount(params.additionalCount);
|
|
@@ -148,7 +148,7 @@ TEST_P(DnsHeaderTest, settersAndGetters2)
|
148
|
148
|
ASSERT_EQ(header.isNonAuthenticatedAcceptable(), params.flagNonAuthenticatedAcceptable);
|
149
|
149
|
ASSERT_EQ(header.getReplyCode(), params.flagReplyCode);
|
150
|
150
|
|
151
|
|
- ASSERT_EQ(header.getQuestionCount(), params.questionCount);
|
|
151
|
+ ASSERT_EQ(header.getQueryCount(), params.queryCount);
|
152
|
152
|
ASSERT_EQ(header.getAnswerCount(), params.answerCount);
|
153
|
153
|
ASSERT_EQ(header.getAuthorityCount(), params.authorityCount);
|
154
|
154
|
ASSERT_EQ(header.getAdditionalCount(), params.additionalCount);
|