Improve and simplify code with modern C++ features
Change-Id: I83bf5513c2a1f90ba5a59e93c473306864b27d94
diff --git a/tests/daemon/face/factory-test-common.hpp b/tests/daemon/face/factory-test-common.hpp
index 7b7bdf6..f92d388 100644
--- a/tests/daemon/face/factory-test-common.hpp
+++ b/tests/daemon/face/factory-test-common.hpp
@@ -34,24 +34,6 @@
namespace face {
namespace tests {
-struct TestFaceParams : public FaceParams
-{
- TestFaceParams(ndn::nfd::FacePersistency persistency,
- optional<time::nanoseconds> baseCongestionMarkingInterval,
- optional<uint64_t> defaultCongestionThreshold,
- bool wantLocalFields,
- bool wantLpReliability,
- boost::logic::tribool wantCongestionMarking) noexcept
- {
- this->persistency = persistency;
- this->baseCongestionMarkingInterval = baseCongestionMarkingInterval;
- this->defaultCongestionThreshold = defaultCongestionThreshold;
- this->wantLocalFields = wantLocalFields;
- this->wantLpReliability = wantLpReliability;
- this->wantCongestionMarking = wantCongestionMarking;
- }
-};
-
struct CreateFaceExpectedResult
{
enum { FAILURE, SUCCESS } result;
@@ -63,7 +45,7 @@
createFace(ProtocolFactory& factory,
const FaceUri& remoteUri,
const optional<FaceUri>& localUri,
- const TestFaceParams& params,
+ const FaceParams& params,
const CreateFaceExpectedResult& expected,
const std::function<void(const Face&)>& extraChecks = nullptr)
{