summaryrefslogtreecommitdiffstats
path: root/src/lib/asiodns/tests
diff options
context:
space:
mode:
authorFrancis Dupont <fdupont@isc.org>2024-03-05 18:44:51 +0100
committerFrancis Dupont <fdupont@isc.org>2024-03-20 00:18:24 +0100
commitbaa1aa46e56a9eb64c8dbf7b8115bc74b0b9d9ca (patch)
treef8493dc49ea33769f038b0a3c652ee540f31ff2b /src/lib/asiodns/tests
parent[#3211] Checkpoint: rewrote InputBuffer (diff)
downloadkea-baa1aa46e56a9eb64c8dbf7b8115bc74b0b9d9ca.tar.xz
kea-baa1aa46e56a9eb64c8dbf7b8115bc74b0b9d9ca.zip
[#3211] Almost done
Diffstat (limited to 'src/lib/asiodns/tests')
-rw-r--r--src/lib/asiodns/tests/io_fetch_unittest.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/asiodns/tests/io_fetch_unittest.cc b/src/lib/asiodns/tests/io_fetch_unittest.cc
index 1001807ccd..47bac7ce93 100644
--- a/src/lib/asiodns/tests/io_fetch_unittest.cc
+++ b/src/lib/asiodns/tests/io_fetch_unittest.cc
@@ -1,4 +1,4 @@
-// Copyright (C) 2011-2020 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2011-2024 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -200,7 +200,7 @@ public:
// identical, then check that the data is identical as well.
EXPECT_EQ(msgbuf_->getLength(), length);
EXPECT_TRUE(equal(receive_buffer_, (receive_buffer_ + length - 1),
- static_cast<const uint8_t*>(msgbuf_->getData())));
+ msgbuf_->getData()));
// Return a message back to the IOFetch object.
if (!bad_qid) {
@@ -313,7 +313,7 @@ public:
receive_buffer_[2] = receive_buffer_[3] = 0;
EXPECT_TRUE(equal((receive_buffer_ + 2), (receive_buffer_ + cumulative_ - 2),
- static_cast<const uint8_t*>(msgbuf_->getData())));
+ msgbuf_->getData()));
// ... and return a message back. This has to be preceded by a two-byte
// count field.
@@ -473,7 +473,7 @@ public:
result_buff_->writeUint8At(return_data_[0], 0);
result_buff_->writeUint8At(return_data_[1], 1);
}
- const uint8_t* start = static_cast<const uint8_t*>(result_buff_->getData());
+ const uint8_t* start = result_buff_->getData();
EXPECT_TRUE(equal(return_data_.begin(), return_data_.end(), start));
}
}