src/tools/test/event-garbage-collector-test-suite.cc
changeset 7252 c8200621e252
parent 7192 618768dcbbac
child 9266 d26408b17360
equal deleted inserted replaced
7251:b2fe610ad03f 7252:c8200621e252
    63   m_events = new EventGarbageCollector ();
    63   m_events = new EventGarbageCollector ();
    64 
    64 
    65   for (int n = 0; n < 100; n++)
    65   for (int n = 0; n < 100; n++)
    66     {
    66     {
    67       m_events->Track (Simulator::Schedule
    67       m_events->Track (Simulator::Schedule
    68                              (Simulator::Now (),
    68                          (Simulator::Now (),
    69                              &EventGarbageCollectorTestCase::EventGarbageCollectorCallback,
    69                          &EventGarbageCollectorTestCase::EventGarbageCollectorCallback,
    70                              this));
    70                          this));
    71     }
    71     }
    72   Simulator::Run ();
    72   Simulator::Run ();
    73   NS_TEST_EXPECT_MSG_EQ (m_events, 0, "");
    73   NS_TEST_EXPECT_MSG_EQ (m_events, 0, "");
    74   NS_TEST_EXPECT_MSG_EQ (m_counter, 50, "");
    74   NS_TEST_EXPECT_MSG_EQ (m_counter, 50, "");
    75   Simulator::Destroy ();
    75   Simulator::Destroy ();