face: group parameters to createFace and connect into a common structure
Change-Id: Icb6857602ed7e897be6c5334b05be23793d133bb
diff --git a/tests/daemon/face/ethernet-factory.t.cpp b/tests/daemon/face/ethernet-factory.t.cpp
index bb0f119..8bdc139 100644
--- a/tests/daemon/face/ethernet-factory.t.cpp
+++ b/tests/daemon/face/ethernet-factory.t.cpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
- * Copyright (c) 2014-2017, Regents of the University of California,
+ * Copyright (c) 2014-2018, Regents of the University of California,
* Arizona Board of Regents,
* Colorado State University,
* University Pierre & Marie Curie, Sorbonne University,
@@ -439,9 +439,7 @@
createFace(factory,
FaceUri("ether://[00:00:5e:00:53:5e]"),
FaceUri("dev://eth0"),
- ndn::nfd::FACE_PERSISTENCY_PERSISTENT,
- false,
- false,
+ {ndn::nfd::FACE_PERSISTENCY_PERSISTENT, false, false},
{CreateFaceExpectedResult::FAILURE, 504, "No channels available to connect"});
SKIP_IF_ETHERNET_NETIF_COUNT_LT(1);
@@ -450,33 +448,25 @@
createFace(factory,
FaceUri("ether://[00:00:5e:00:53:5e]"),
localUri,
- ndn::nfd::FACE_PERSISTENCY_PERSISTENT,
- false,
- false,
+ {ndn::nfd::FACE_PERSISTENCY_PERSISTENT, false, false},
{CreateFaceExpectedResult::SUCCESS, 0, ""});
createFace(factory,
FaceUri("ether://[00:00:5e:00:53:5e]"),
localUri,
- ndn::nfd::FACE_PERSISTENCY_PERMANENT,
- false,
- false,
+ {ndn::nfd::FACE_PERSISTENCY_PERMANENT, false, false},
{CreateFaceExpectedResult::SUCCESS, 0, ""});
createFace(factory,
FaceUri("ether://[00:00:5e:00:53:53]"),
localUri,
- ndn::nfd::FACE_PERSISTENCY_PERMANENT,
- false,
- false,
+ {ndn::nfd::FACE_PERSISTENCY_PERMANENT, false, false},
{CreateFaceExpectedResult::SUCCESS, 0, ""});
createFace(factory,
FaceUri("ether://[00:00:5e:00:53:57]"),
localUri,
- ndn::nfd::FACE_PERSISTENCY_PERMANENT,
- false,
- true,
+ {ndn::nfd::FACE_PERSISTENCY_PERMANENT, false, true},
{CreateFaceExpectedResult::SUCCESS, 0, ""});
}
@@ -485,45 +475,35 @@
createFace(factory,
FaceUri("ether://[00:00:5e:00:53:5e]"),
{},
- ndn::nfd::FACE_PERSISTENCY_PERSISTENT,
- false,
- false,
+ {ndn::nfd::FACE_PERSISTENCY_PERSISTENT, false, false},
{CreateFaceExpectedResult::FAILURE, 406,
"Creation of unicast Ethernet faces requires a LocalUri with dev:// scheme"});
createFace(factory,
FaceUri("ether://[00:00:5e:00:53:5e]"),
FaceUri("udp4://127.0.0.1:20071"),
- ndn::nfd::FACE_PERSISTENCY_PERSISTENT,
- false,
- false,
+ {ndn::nfd::FACE_PERSISTENCY_PERSISTENT, false, false},
{CreateFaceExpectedResult::FAILURE, 406,
"Creation of unicast Ethernet faces requires a LocalUri with dev:// scheme"});
createFace(factory,
FaceUri("ether://[00:00:5e:00:53:5e]"),
FaceUri("dev://eth0"),
- ndn::nfd::FACE_PERSISTENCY_ON_DEMAND,
- false,
- false,
+ {ndn::nfd::FACE_PERSISTENCY_ON_DEMAND, false, false},
{CreateFaceExpectedResult::FAILURE, 406,
"Outgoing Ethernet faces do not support on-demand persistency"});
createFace(factory,
FaceUri("ether://[01:00:5e:90:10:5e]"),
FaceUri("dev://eth0"),
- ndn::nfd::FACE_PERSISTENCY_PERSISTENT,
- false,
- false,
+ {ndn::nfd::FACE_PERSISTENCY_PERSISTENT, false, false},
{CreateFaceExpectedResult::FAILURE, 406,
"Cannot create multicast Ethernet faces"});
createFace(factory,
FaceUri("ether://[00:00:5e:00:53:5e]"),
FaceUri("dev://eth0"),
- ndn::nfd::FACE_PERSISTENCY_PERSISTENT,
- true,
- false,
+ {ndn::nfd::FACE_PERSISTENCY_PERSISTENT, true, false},
{CreateFaceExpectedResult::FAILURE, 406,
"Local fields can only be enabled on faces with local scope"});
}