diff options
author | Josh Blum <josh@joshknows.com> | 2010-08-05 16:41:51 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-08-06 12:15:05 -0700 |
commit | 5ec42578fa9f69e92ae935c16717957a6ea66324 (patch) | |
tree | db54b506b9dccb857723b7b07ce236986e070e8b /host/test/subdev_spec_test.cpp | |
parent | a333a01ac0d1d0cb011d52f04bed2534a708f944 (diff) | |
download | uhd-5ec42578fa9f69e92ae935c16717957a6ea66324.tar.gz uhd-5ec42578fa9f69e92ae935c16717957a6ea66324.tar.bz2 uhd-5ec42578fa9f69e92ae935c16717957a6ea66324.zip |
uhd: created subdevice pair struct for subdev spec (easier than first/second)
Diffstat (limited to 'host/test/subdev_spec_test.cpp')
-rw-r--r-- | host/test/subdev_spec_test.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/host/test/subdev_spec_test.cpp b/host/test/subdev_spec_test.cpp index ca4b4771b..8817d5eee 100644 --- a/host/test/subdev_spec_test.cpp +++ b/host/test/subdev_spec_test.cpp @@ -25,8 +25,8 @@ BOOST_AUTO_TEST_CASE(test_subdevice_spec){ //load the subdev spec with something uhd::usrp::subdev_spec_t sd_spec; - sd_spec.push_back(uhd::usrp::subdev_spec_t::pair_t("A", "AB")); - sd_spec.push_back(uhd::usrp::subdev_spec_t::pair_t("B", "AB")); + sd_spec.push_back(uhd::usrp::subdev_spec_pair_t("A", "AB")); + sd_spec.push_back(uhd::usrp::subdev_spec_pair_t("B", "AB")); //convert to and from args string std::cout << "Pretty Print: " << std::endl << sd_spec.to_pp_string(); @@ -39,7 +39,7 @@ BOOST_AUTO_TEST_CASE(test_subdevice_spec){ //the contents should match for (size_t i = 0; i < sd_spec.size(); i++){ - BOOST_CHECK_EQUAL(sd_spec.at(i).first, new_sd_spec.at(i).first); - BOOST_CHECK_EQUAL(sd_spec.at(i).second, new_sd_spec.at(i).second); + BOOST_CHECK_EQUAL(sd_spec.at(i).db_name, new_sd_spec.at(i).db_name); + BOOST_CHECK_EQUAL(sd_spec.at(i).sd_name, new_sd_spec.at(i).sd_name); } } |