diff options
Diffstat (limited to 'src/lib/dhcpsrv/tests')
-rw-r--r-- | src/lib/dhcpsrv/tests/cb_ctl_dhcp_unittest.cc | 4 | ||||
-rw-r--r-- | src/lib/dhcpsrv/tests/memfile_lease_mgr_unittest.cc | 2 | ||||
-rw-r--r-- | src/lib/dhcpsrv/tests/shared_network_unittest.cc | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/dhcpsrv/tests/cb_ctl_dhcp_unittest.cc b/src/lib/dhcpsrv/tests/cb_ctl_dhcp_unittest.cc index 8706767a0e..15b0c97f3f 100644 --- a/src/lib/dhcpsrv/tests/cb_ctl_dhcp_unittest.cc +++ b/src/lib/dhcpsrv/tests/cb_ctl_dhcp_unittest.cc @@ -174,7 +174,7 @@ public: /// @param object_type Object type. bool hasConfigElement(const std::string& object_type) const { if (!audit_entries_.empty()) { - const auto& index = audit_entries_.get<AuditEntryObjectTypeTag>(); + auto const& index = audit_entries_.get<AuditEntryObjectTypeTag>(); auto range = index.equal_range(object_type); for (auto it = range.first; it != range.second; ++it) { if (((*it)->getModificationType() != AuditEntry::ModificationType::DELETE)) { @@ -195,7 +195,7 @@ public: bool deleteConfigElement(const std::string& object_type, const uint64_t object_id) const { if (!audit_entries_.empty()) { - const auto& index = audit_entries_.get<AuditEntryObjectTypeTag>(); + auto const& index = audit_entries_.get<AuditEntryObjectTypeTag>(); auto range = index.equal_range(boost::make_tuple(object_type, AuditEntry::ModificationType::DELETE)); for (auto it = range.first; it != range.second; ++it) { diff --git a/src/lib/dhcpsrv/tests/memfile_lease_mgr_unittest.cc b/src/lib/dhcpsrv/tests/memfile_lease_mgr_unittest.cc index f34b308dd6..5eff523f55 100644 --- a/src/lib/dhcpsrv/tests/memfile_lease_mgr_unittest.cc +++ b/src/lib/dhcpsrv/tests/memfile_lease_mgr_unittest.cc @@ -187,7 +187,7 @@ public: /// @brief Remove other files. void removeOtherFiles() const { - for (const auto& file : extra_files_) { + for (auto const& file : extra_files_) { LeaseFileIO io(file); io.removeFile(); } diff --git a/src/lib/dhcpsrv/tests/shared_network_unittest.cc b/src/lib/dhcpsrv/tests/shared_network_unittest.cc index 00a42b0ebe..ea200016d3 100644 --- a/src/lib/dhcpsrv/tests/shared_network_unittest.cc +++ b/src/lib/dhcpsrv/tests/shared_network_unittest.cc @@ -404,7 +404,7 @@ TEST(SharedNetwork4Test, getNextSubnet) { if (j < subnets.size() - 1) { ASSERT_TRUE(s) << "retrieving next subnet failed for pair of" " indexes (i, j) = (" << i << ", " << j << ")"; - const auto expected_subnet_id = (i + j + 1) % subnets.size() + 1; + auto const expected_subnet_id = (i + j + 1) % subnets.size() + 1; EXPECT_EQ(expected_subnet_id, s->getID()); } else { // Null subnet returned for a last iteration. @@ -1154,7 +1154,7 @@ TEST(SharedNetwork6Test, getNextSubnet) { if (j < subnets.size() - 1) { ASSERT_TRUE(s) << "retrieving next subnet failed for pair of" " indexes (i, j) = (" << i << ", " << j << ")"; - const auto expected_subnet_id = (i + j + 1) % subnets.size() + 1; + auto const expected_subnet_id = (i + j + 1) % subnets.size() + 1; EXPECT_EQ(expected_subnet_id, s->getID()); } else { // Null subnet returned for a last iteration. |