aboutsummaryrefslogtreecommitdiffstats
path: root/rlp.cpp
diff options
context:
space:
mode:
authorGav Wood <i@gavwood.com>2014-09-05 23:09:58 +0800
committerGav Wood <i@gavwood.com>2014-09-05 23:09:58 +0800
commit38dd3fb050cae0bc28205ecff8591fa44605efc7 (patch)
treea7a8c238e98f1ec02fe02aaf51c645bb494a27d3 /rlp.cpp
parentd0d1e91a685dda428af9dd41a3afd83424dc5775 (diff)
downloaddexon-solidity-38dd3fb050cae0bc28205ecff8591fa44605efc7.tar.gz
dexon-solidity-38dd3fb050cae0bc28205ecff8591fa44605efc7.tar.zst
dexon-solidity-38dd3fb050cae0bc28205ecff8591fa44605efc7.zip
Project-wide reorganisation of namespaces.
Diffstat (limited to 'rlp.cpp')
-rw-r--r--rlp.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/rlp.cpp b/rlp.cpp
index 548be8d9..963d6109 100644
--- a/rlp.cpp
+++ b/rlp.cpp
@@ -30,10 +30,10 @@
#include <algorithm>
using namespace std;
-using namespace eth;
+using namespace dev;
namespace js = json_spirit;
-namespace eth
+namespace dev
{
namespace test
{
@@ -116,7 +116,7 @@ namespace eth
BOOST_CHECK( !u.isData() );
js::mArray& arr = v.get_array();
BOOST_CHECK( u.itemCount() == arr.size() );
- uint i;
+ unsigned i;
for( i = 0; i < arr.size(); i++ )
{
RLP item = u[i];
@@ -137,16 +137,16 @@ BOOST_AUTO_TEST_CASE(rlp_encoding_test)
{
cnote << "Testing RLP Encoding...";
js::mValue v;
- eth::test::getRLPTestCases(v);
+ dev::test::getRLPTestCases(v);
for (auto& i: v.get_obj())
{
js::mObject& o = i.second.get_obj();
cnote << i.first;
- eth::test::checkRLPTestCase(o);
+ dev::test::checkRLPTestCase(o);
RLPStream s;
- eth::test::buildRLP(o["in"], s);
+ dev::test::buildRLP(o["in"], s);
std::string expectedText(o["out"].get_str());
std::transform(expectedText.begin(), expectedText.end(), expectedText.begin(), ::tolower );
@@ -173,19 +173,19 @@ BOOST_AUTO_TEST_CASE(rlp_decoding_test)
// and then compare the output structure to the json of the
// input object.
js::mValue v;
- eth::test::getRLPTestCases(v);
+ dev::test::getRLPTestCases(v);
for (auto& i: v.get_obj())
{
js::mObject& o = i.second.get_obj();
cnote << i.first;
- eth::test::checkRLPTestCase(o);
+ dev::test::checkRLPTestCase(o);
js::mValue& inputData = o["in"];
bytes payloadToDecode = fromHex(o["out"].get_str());
RLP payload(payloadToDecode);
- eth::test::checkRLPAgainstJson(inputData, payload);
+ dev::test::checkRLPAgainstJson(inputData, payload);
}
}