X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=test%2Ftest.cpp;h=1f078ab4f8a3104a1a118caabe8027fcdd2961cc;hp=acb3c963dcfb8a1488440c1f7165fe2f07a6a81a;hb=39dce56b0e0b4daba503663e44ee6c86a754ddc2;hpb=4780b4c82daf8e6d0386411d333967782bf52d8c diff --git a/test/test.cpp b/test/test.cpp index acb3c963..1f078ab4 100644 --- a/test/test.cpp +++ b/test/test.cpp @@ -1,5 +1,5 @@ /* - * This file is part of the sigrok project. + * This file is part of the PulseView project. * * Copyright (C) 2012 Joel Holdsworth * @@ -14,24 +14,16 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * along with this program; if not, see . */ #define BOOST_TEST_MAIN +#include "test/test.hpp" #include -#include "../logicdatasnapshot.h" +using std::ostream; -BOOST_AUTO_TEST_CASE(LogicDataSnapshotTest) +ostream& operator<<(ostream& stream, const QString& str) { - // Create an empty LogicDataSnapshot object - sr_datafeed_logic logic; - logic.length = 0; - logic.unitsize = 1; - logic.data = NULL; - - LogicDataSnapshot s(logic); - - BOOST_CHECK(s.get_sample_count() == 0); + return stream << str.toUtf8().data(); }