Commit 28a159a1 authored by Evan Hunt's avatar Evan Hunt
Browse files

More static_casts of NULL for NetBSD.


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@2403 e5f2f494-b856-4b98-b285-d166d9295462
parent 373459f1
......@@ -376,8 +376,8 @@ TEST_F(Sqlite3DataSourceTest, reOpen) {
DataSrcMatch match(www_name, rrclass);
data_source.findClosestEnclosure(match);
EXPECT_EQ(NULL, match.getEnclosingZone());
EXPECT_EQ(NULL, match.getDataSource());
EXPECT_EQ(static_cast<void*>(NULL), match.getEnclosingZone());
EXPECT_EQ(static_cast<void*>(NULL), match.getDataSource());
}
TEST_F(Sqlite3DataSourceTest, openFail) {
......@@ -441,15 +441,15 @@ TEST_F(Sqlite3DataSourceTest, findClosestEnclosureAtDelegation) {
TEST_F(Sqlite3DataSourceTest, findClosestEnclosureNoMatch) {
DataSrcMatch match(nomatch_name, rrclass);
data_source.findClosestEnclosure(match);
EXPECT_EQ(NULL, match.getEnclosingZone());
EXPECT_EQ(NULL, match.getDataSource());
EXPECT_EQ(static_cast<void*>(NULL), match.getEnclosingZone());
EXPECT_EQ(static_cast<void*>(NULL), match.getDataSource());
}
TEST_F(Sqlite3DataSourceTest, findClosestClassMismatch) {
DataSrcMatch match(nomatch_name, rrclass);
data_source.findClosestEnclosure(match);
EXPECT_EQ(NULL, match.getEnclosingZone());
EXPECT_EQ(NULL, match.getDataSource());
EXPECT_EQ(static_cast<void*>(NULL), match.getEnclosingZone());
EXPECT_EQ(static_cast<void*>(NULL), match.getDataSource());
}
// If the query class is ANY, the result should be the same as the case where
......
......@@ -214,8 +214,8 @@ TEST_F(StaticDataSourceTest, findClosestEnclosureForVersionClassAny) {
TEST_F(StaticDataSourceTest, findClosestEnclosureForVersionClassMismatch) {
DataSrcMatch match(version_name, RRClass::IN());
data_source.findClosestEnclosure(match);
EXPECT_EQ(NULL, match.getEnclosingZone());
EXPECT_EQ(NULL, match.getDataSource());
EXPECT_EQ(static_cast<void*>(NULL), match.getEnclosingZone());
EXPECT_EQ(static_cast<void*>(NULL), match.getDataSource());
}
TEST_F(StaticDataSourceTest, findClosestEnclosureForVersionPartial) {
......@@ -242,8 +242,8 @@ TEST_F(StaticDataSourceTest, findClosestEnclosureForAuthorsPartial) {
TEST_F(StaticDataSourceTest, findClosestEnclosureNoMatch) {
DataSrcMatch match(nomatch_name, rrclass);
data_source.findClosestEnclosure(match);
EXPECT_EQ(NULL, match.getEnclosingZone());
EXPECT_EQ(NULL, match.getDataSource());
EXPECT_EQ(static_cast<void*>(NULL), match.getEnclosingZone());
EXPECT_EQ(static_cast<void*>(NULL), match.getDataSource());
}
TEST_F(StaticDataSourceTest, findRRsetVersionTXT) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment