00001
00002
00003
00004
00005
00006
00007
00008 #include <cppunit/TestFixture.h>
00009 #include <cppunit/extensions/HelperMacros.h>
00010 #include "routing/BundleSummary.h"
00011 #include <iostream>
00012
00013 #ifndef TESTBUNDLESUMMARY_H_
00014 #define TESTBUNDLESUMMARY_H_
00015
00016 class TestBundleSummary : public CPPUNIT_NS :: TestFixture
00017 {
00018 CPPUNIT_TEST_SUITE (TestBundleSummary);
00019 CPPUNIT_TEST (expireTest);
00020 CPPUNIT_TEST_SUITE_END ();
00021
00022 public:
00023 void setUp (void);
00024 void tearDown (void);
00025
00026 protected:
00027 void expireTest(void);
00028
00029 private:
00030 void genbundles(dtn::routing::BundleSummary &l, int number, int offset, int max);
00031 std::string getHex(std::istream &stream);
00032 };
00033
00034 #endif