face: Rename all ChannelFactories to protocol Factories
Base class is ProtocolFactory and implementations are TcpFactory,
UnixStreamFactory, EthernetFactory.
Since Factories are doing more than just creating channels (some can
create faces directly), more general name is more appropriate.
Change-Id: I3d6c2460a1b29e244f8462453720f4e7785893ca
diff --git a/tests/face/ethernet.cpp b/tests/face/ethernet.cpp
index f03cb68..f2e7134 100644
--- a/tests/face/ethernet.cpp
+++ b/tests/face/ethernet.cpp
@@ -4,7 +4,7 @@
* See COPYING for copyright and distribution information.
*/
-#include "face/ethernet-channel-factory.hpp"
+#include "face/ethernet-factory.hpp"
#include <ndn-cpp-dev/security/key-chain.hpp>
#include "tests/test-common.hpp"
@@ -16,9 +16,9 @@
BOOST_AUTO_TEST_CASE(MulticastFacesMap)
{
- EthernetChannelFactory factory;
+ EthernetFactory factory;
- std::vector<ethernet::Endpoint> interfaces = EthernetChannelFactory::findAllInterfaces();
+ std::vector<ethernet::Endpoint> interfaces = EthernetFactory::findAllInterfaces();
if (interfaces.size() > 0)
{
shared_ptr<EthernetFace> face1;
@@ -56,9 +56,9 @@
BOOST_AUTO_TEST_CASE(SendPacket)
{
- EthernetChannelFactory factory;
+ EthernetFactory factory;
- std::vector<ethernet::Endpoint> interfaces = EthernetChannelFactory::findAllInterfaces();
+ std::vector<ethernet::Endpoint> interfaces = EthernetFactory::findAllInterfaces();
if (interfaces.empty())
{
BOOST_WARN_MESSAGE(interfaces.empty(),