X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=test%2Fdata%2Fdecoderstack.cpp;h=d6e4f75a8a898dbbf3aea473690dcffdbbdbfb71;hp=84a496f1f2ada2c0292b425ec2efae0ebbf99e0d;hb=7cfb538d044b7400f2c62695cde4e9b0e440bb3d;hpb=6e89374a6796f8d5d9cc61b0a2f7e98562a034ae diff --git a/test/data/decoderstack.cpp b/test/data/decoderstack.cpp index 84a496f1..d6e4f75a 100644 --- a/test/data/decoderstack.cpp +++ b/test/data/decoderstack.cpp @@ -28,15 +28,16 @@ #include "../../pv/sigsession.h" #include "../../pv/view/decodetrace.h" -using namespace boost; -using namespace std; +using boost::shared_ptr; +using pv::data::DecoderStack; +using pv::data::decode::Decoder; +using pv::view::DecodeTrace; +using std::vector; BOOST_AUTO_TEST_SUITE(DecoderStackTest) BOOST_AUTO_TEST_CASE(TwoDecoderStack) { - using namespace pv; - sr_context *ctx = NULL; BOOST_REQUIRE(sr_init(&ctx) == SR_OK); @@ -59,13 +60,13 @@ BOOST_AUTO_TEST_CASE(TwoDecoderStack) ss.add_decoder(dec); // Check the signals were created - const vector< shared_ptr > sigs = + const vector< shared_ptr > sigs = ss.get_decode_signals(); - shared_ptr dec0 = sigs[0]->decoder(); + shared_ptr dec0 = sigs[0]->decoder(); BOOST_REQUIRE(dec0); - shared_ptr dec1 = sigs[0]->decoder(); + shared_ptr dec1 = sigs[0]->decoder(); BOOST_REQUIRE(dec1); // Wait for the decode threads to complete