From d83dd59178778b5748092f244ce66e37319f4070 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Mon, 28 Nov 2016 00:58:07 +0000 Subject: Move ExecutionFramework to the dev::test namespace --- test/ExecutionFramework.cpp | 3 +-- test/ExecutionFramework.h | 6 +----- test/contracts/AuctionRegistrar.cpp | 1 + test/contracts/FixedFeeRegistrar.cpp | 1 + test/contracts/Wallet.cpp | 1 + test/libsolidity/GasMeter.cpp | 1 + test/libsolidity/SolidityEndToEndTest.cpp | 1 + test/libsolidity/SolidityExecutionFramework.cpp | 3 +-- test/libsolidity/SolidityExecutionFramework.h | 4 ++-- test/libsolidity/SolidityOptimizer.cpp | 1 + 10 files changed, 11 insertions(+), 11 deletions(-) (limited to 'test') diff --git a/test/ExecutionFramework.cpp b/test/ExecutionFramework.cpp index 4ae50462..0c6e0cff 100644 --- a/test/ExecutionFramework.cpp +++ b/test/ExecutionFramework.cpp @@ -27,8 +27,7 @@ using namespace std; using namespace dev; -using namespace dev::solidity; -using namespace dev::solidity::test; +using namespace dev::test; namespace // anonymous { diff --git a/test/ExecutionFramework.h b/test/ExecutionFramework.h index e487b106..6ec1a06b 100644 --- a/test/ExecutionFramework.h +++ b/test/ExecutionFramework.h @@ -32,7 +32,7 @@ namespace dev { -namespace solidity +namespace test { using rational = boost::rational; /// An Ethereum address: 20 bytes. @@ -46,9 +46,6 @@ namespace solidity static const u256 shannon = exp10<9>(); static const u256 wei = exp10<0>(); -namespace test -{ - class ExecutionFramework { @@ -282,7 +279,6 @@ protected: u256 m_gasUsed; }; -} } } // end namespaces diff --git a/test/contracts/AuctionRegistrar.cpp b/test/contracts/AuctionRegistrar.cpp index c156efd1..fb8c1c68 100644 --- a/test/contracts/AuctionRegistrar.cpp +++ b/test/contracts/AuctionRegistrar.cpp @@ -27,6 +27,7 @@ #include using namespace std; +using namespace dev::test; namespace dev { diff --git a/test/contracts/FixedFeeRegistrar.cpp b/test/contracts/FixedFeeRegistrar.cpp index 829205d5..39c32eb7 100644 --- a/test/contracts/FixedFeeRegistrar.cpp +++ b/test/contracts/FixedFeeRegistrar.cpp @@ -35,6 +35,7 @@ #include using namespace std; +using namespace dev::test; namespace dev { diff --git a/test/contracts/Wallet.cpp b/test/contracts/Wallet.cpp index 6fbee6f1..80f06613 100644 --- a/test/contracts/Wallet.cpp +++ b/test/contracts/Wallet.cpp @@ -35,6 +35,7 @@ #include using namespace std; +using namespace dev::test; namespace dev { diff --git a/test/libsolidity/GasMeter.cpp b/test/libsolidity/GasMeter.cpp index f467d669..0671fb15 100644 --- a/test/libsolidity/GasMeter.cpp +++ b/test/libsolidity/GasMeter.cpp @@ -32,6 +32,7 @@ using namespace std; using namespace dev::eth; using namespace dev::solidity; +using namespace dev::test; namespace dev { diff --git a/test/libsolidity/SolidityEndToEndTest.cpp b/test/libsolidity/SolidityEndToEndTest.cpp index b5fcdb5e..930b11c6 100644 --- a/test/libsolidity/SolidityEndToEndTest.cpp +++ b/test/libsolidity/SolidityEndToEndTest.cpp @@ -31,6 +31,7 @@ using namespace std; using namespace std::placeholders; +using namespace dev::test; namespace dev { diff --git a/test/libsolidity/SolidityExecutionFramework.cpp b/test/libsolidity/SolidityExecutionFramework.cpp index fe35087c..bb9695d1 100644 --- a/test/libsolidity/SolidityExecutionFramework.cpp +++ b/test/libsolidity/SolidityExecutionFramework.cpp @@ -24,8 +24,7 @@ #include #include -using namespace std; -using namespace dev; +using namespace dev::test; using namespace dev::solidity; using namespace dev::solidity::test; diff --git a/test/libsolidity/SolidityExecutionFramework.h b/test/libsolidity/SolidityExecutionFramework.h index 16b886f1..0fab7aeb 100644 --- a/test/libsolidity/SolidityExecutionFramework.h +++ b/test/libsolidity/SolidityExecutionFramework.h @@ -38,7 +38,7 @@ namespace solidity namespace test { -class SolidityExecutionFramework: public ExecutionFramework +class SolidityExecutionFramework: public dev::test::ExecutionFramework { public: @@ -49,7 +49,7 @@ public: u256 const& _value = 0, std::string const& _contractName = "", bytes const& _arguments = bytes(), - std::map const& _libraryAddresses = std::map() + std::map const& _libraryAddresses = std::map() ) override { // Silence compiler version warning diff --git a/test/libsolidity/SolidityOptimizer.cpp b/test/libsolidity/SolidityOptimizer.cpp index 15208b41..60310555 100644 --- a/test/libsolidity/SolidityOptimizer.cpp +++ b/test/libsolidity/SolidityOptimizer.cpp @@ -37,6 +37,7 @@ using namespace std; using namespace dev::eth; +using namespace dev::test; namespace dev { -- cgit v1.2.3