diff options
author | Francis Dupont <fdupont@isc.org> | 2020-07-31 00:04:26 +0200 |
---|---|---|
committer | Tomek Mrugalski <tomek@isc.org> | 2020-08-13 15:54:14 +0200 |
commit | 2035f64c1c0d0908c71b47a0c321ed66784e391c (patch) | |
tree | b9f69a38a572cb7afe2763143fc5c877b218ebad /src/bin/dhcp4/tests | |
parent | [#285] Corrected changelog numbering (diff) | |
download | kea-2035f64c1c0d0908c71b47a0c321ed66784e391c.tar.xz kea-2035f64c1c0d0908c71b47a0c321ed66784e391c.zip |
[#1308] Got rid of boost function/bind
Diffstat (limited to 'src/bin/dhcp4/tests')
-rw-r--r-- | src/bin/dhcp4/tests/ctrl_dhcp4_srv_unittest.cc | 7 | ||||
-rw-r--r-- | src/bin/dhcp4/tests/hooks_unittest.cc | 6 |
2 files changed, 7 insertions, 6 deletions
diff --git a/src/bin/dhcp4/tests/ctrl_dhcp4_srv_unittest.cc b/src/bin/dhcp4/tests/ctrl_dhcp4_srv_unittest.cc index d339e66a41..dbc432fab3 100644 --- a/src/bin/dhcp4/tests/ctrl_dhcp4_srv_unittest.cc +++ b/src/bin/dhcp4/tests/ctrl_dhcp4_srv_unittest.cc @@ -44,6 +44,7 @@ #include <unistd.h> using namespace std; +using namespace std::placeholders; using namespace isc; using namespace isc::asiolink; using namespace isc::config; @@ -1528,8 +1529,8 @@ TEST_F(CtrlChannelDhcpv4SrvTest, longCommand) { ASSERT_NO_THROW( CommandMgr::instance().registerCommand("foo", - boost::bind(&CtrlChannelDhcpv4SrvTest::longCommandHandler, - command.str(), _1, _2)); + std::bind(&CtrlChannelDhcpv4SrvTest::longCommandHandler, + command.str(), _1, _2)); ); createUnixChannelServer(); @@ -1587,7 +1588,7 @@ TEST_F(CtrlChannelDhcpv4SrvTest, longResponse) { // of a desired size. ASSERT_NO_THROW( CommandMgr::instance().registerCommand("foo", - boost::bind(&CtrlChannelDhcpv4SrvTest::longResponseHandler, _1, _2)); + std::bind(&CtrlChannelDhcpv4SrvTest::longResponseHandler, _1, _2)); ); createUnixChannelServer(); diff --git a/src/bin/dhcp4/tests/hooks_unittest.cc b/src/bin/dhcp4/tests/hooks_unittest.cc index 28385223ab..6519d28b77 100644 --- a/src/bin/dhcp4/tests/hooks_unittest.cc +++ b/src/bin/dhcp4/tests/hooks_unittest.cc @@ -701,9 +701,9 @@ public: callout_handle.getArgument("query4", callback_qry_pkt4_); - io_service_->post(boost::bind(&HooksDhcpv4SrvTest::leases4_committed_unpark, - callout_handle.getParkingLotHandlePtr(), - callback_qry_pkt4_)); + io_service_->post(std::bind(&HooksDhcpv4SrvTest::leases4_committed_unpark, + callout_handle.getParkingLotHandlePtr(), + callback_qry_pkt4_)); callout_handle.getParkingLotHandlePtr()->reference(callback_qry_pkt4_); callout_handle.setStatus(CalloutHandle::NEXT_STEP_PARK); |