equal
deleted
inserted
replaced
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 (); |