From 552ce310fe6e4def815f49f3232d1509c5c31b65 Mon Sep 17 00:00:00 2001 From: Thomas Markwalder Date: Mon, 9 May 2016 07:32:51 -0400 Subject: [PATCH] [4492] Addressed review comments src/bin/dhcp4/tests/hooks_unittest.cc src/bin/dhcp6/tests/hooks_unittest.cc Fixed includes, copyright, and removed unnecessary calls to IfaceMgr::instance().deleteAllExternalSockets(); --- src/bin/dhcp4/tests/hooks_unittest.cc | 8 +++----- src/bin/dhcp6/tests/hooks_unittest.cc | 7 +++---- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/src/bin/dhcp4/tests/hooks_unittest.cc b/src/bin/dhcp4/tests/hooks_unittest.cc index b0814ca0f9..7a2e0a8843 100644 --- a/src/bin/dhcp4/tests/hooks_unittest.cc +++ b/src/bin/dhcp4/tests/hooks_unittest.cc @@ -1,4 +1,4 @@ -// Copyright (C) 2015 Internet Systems Consortium, Inc. ("ISC") +// Copyright (C) 2015-2016 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 @@ -17,8 +17,8 @@ #include #include #include -#include "marker_file.h" -#include "test_libraries.h" +#include +#include #include @@ -585,8 +585,6 @@ public: // Get rid of any marker files. static_cast(remove(LOAD_MARKER_FILE)); static_cast(remove(UNLOAD_MARKER_FILE)); - - IfaceMgr::instance().deleteAllExternalSockets(); CfgMgr::instance().clear(); } }; diff --git a/src/bin/dhcp6/tests/hooks_unittest.cc b/src/bin/dhcp6/tests/hooks_unittest.cc index 1b3f0e867c..7907174422 100644 --- a/src/bin/dhcp6/tests/hooks_unittest.cc +++ b/src/bin/dhcp6/tests/hooks_unittest.cc @@ -1,4 +1,4 @@ -// Copyright (C) 2013-2015 Internet Systems Consortium, Inc. ("ISC") +// Copyright (C) 2013-2016 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 @@ -24,8 +24,8 @@ #include #include #include -#include "marker_file.h" -#include "test_libraries.h" +#include +#include #include #include @@ -575,7 +575,6 @@ public: static_cast(remove(LOAD_MARKER_FILE)); static_cast(remove(UNLOAD_MARKER_FILE)); - IfaceMgr::instance().deleteAllExternalSockets(); CfgMgr::instance().clear(); } }; -- 2.47.2