all: rename Tlv namespace to tlv for consistency
This commit renames the Tlv namespace defined in
tlv.hpp to tlv to be more consistent with tlv::security
and tlv::nfd. A Tlv namespace alias is provided for
backwards compatibility.
Change-Id: I21278d6a077afe7776802c3296997d4c1c44c6c6
diff --git a/tests/unit-tests/test-block.cpp b/tests/unit-tests/test-block.cpp
index c653177..cc860b7 100644
--- a/tests/unit-tests/test-block.cpp
+++ b/tests/unit-tests/test-block.cpp
@@ -40,7 +40,7 @@
0xff, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00 // == 4294967296LL
};
- using namespace Tlv;
+ using namespace tlv;
const uint8_t* begin;
uint64_t value;
@@ -117,7 +117,7 @@
0xff, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00 // == 4294967296LL
};
- using namespace Tlv;
+ using namespace tlv;
typedef boost::iostreams::stream<boost::iostreams::array_source> ArrayStream;
typedef std::istream_iterator<uint8_t> Iterator;
@@ -257,7 +257,7 @@
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01
};
- using namespace Tlv;
+ using namespace tlv;
const uint8_t* begin;
uint64_t value;
@@ -292,7 +292,7 @@
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01
};
- using namespace Tlv;
+ using namespace tlv;
typedef boost::iostreams::stream<boost::iostreams::array_source> ArrayStream;
typedef std::istream_iterator<uint8_t> Iterator;
@@ -579,7 +579,7 @@
BOOST_CHECK_EQUAL(*testBlock.wire(), 0x01);
BOOST_CHECK_EQUAL(*testBlock.value(), 0xfb);
- BOOST_CHECK_THROW(Block::fromStream(stream), Tlv::Error);
+ BOOST_CHECK_THROW(Block::fromStream(stream), tlv::Error);
}
BOOST_AUTO_TEST_CASE(Equality)