rib+tools: use ndn::nfd::RouteOrigin instead of uint64_t
Change-Id: Ic8cbe95491a41e1d34b66d406da8637aeb5fd9e3
Refs: #3903
diff --git a/tests/rib/rib-entry.t.cpp b/tests/rib/rib-entry.t.cpp
index 03cd8b9..65f73dc 100644
--- a/tests/rib/rib-entry.t.cpp
+++ b/tests/rib/rib-entry.t.cpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
- * Copyright (c) 2014-2016, Regents of the University of California,
+ * Copyright (c) 2014-2017, Regents of the University of California,
* Arizona Board of Regents,
* Colorado State University,
* University Pierre & Marie Curie, Sorbonne University,
@@ -40,16 +40,16 @@
rib::Route route1;
route1.faceId = 1;
- route1.origin = 0;
+ route1.origin = ndn::nfd::ROUTE_ORIGIN_APP;
- std::tie(entryIt, didInsert) = entry.insertRoute(route1);
+ std::tie(entryIt, didInsert) = entry.insertRoute(route1);
BOOST_CHECK_EQUAL(entry.getRoutes().size(), 1);
BOOST_CHECK(entryIt == entry.findRoute(route1));
BOOST_CHECK(didInsert);
Route route2;
route2.faceId = 1;
- route2.origin = 128;
+ route2.origin = ndn::nfd::ROUTE_ORIGIN_NLSR;
std::tie(entryIt, didInsert) = entry.insertRoute(route2);
BOOST_CHECK_EQUAL(entry.getRoutes().size(), 2);