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/tcp.cpp b/tests/face/tcp.cpp
index cba8796..bc65c8b 100644
--- a/tests/face/tcp.cpp
+++ b/tests/face/tcp.cpp
@@ -4,7 +4,7 @@
* See COPYING for copyright and distribution information.
*/
-#include "face/tcp-channel-factory.hpp"
+#include "face/tcp-factory.hpp"
#include "core/scheduler.hpp"
#include <ndn-cpp-dev/security/key-chain.hpp>
@@ -17,7 +17,7 @@
BOOST_AUTO_TEST_CASE(ChannelMap)
{
- TcpChannelFactory factory;
+ TcpFactory factory;
shared_ptr<TcpChannel> channel1 = factory.create("127.0.0.1", "20070");
shared_ptr<TcpChannel> channel1a = factory.create("127.0.0.1", "20070");
@@ -174,7 +174,7 @@
BOOST_FIXTURE_TEST_CASE(EndToEnd, EndToEndFixture)
{
- TcpChannelFactory factory;
+ TcpFactory factory;
EventId abortEvent =
scheduler::schedule(time::seconds(10),
@@ -250,7 +250,7 @@
BOOST_FIXTURE_TEST_CASE(MultipleAccepts, EndToEndFixture)
{
- TcpChannelFactory factory;
+ TcpFactory factory;
EventId abortEvent =
scheduler::schedule(time::seconds(10),
@@ -317,7 +317,7 @@
BOOST_FIXTURE_TEST_CASE(FaceClosing, EndToEndFixture)
{
- TcpChannelFactory factory;
+ TcpFactory factory;
EventId abortEvent =
scheduler::schedule(time::seconds(10),