equal
deleted
inserted
replaced
51 |
51 |
52 SimulatorEventsTestCase::SimulatorEventsTestCase (ObjectFactory schedulerFactory) |
52 SimulatorEventsTestCase::SimulatorEventsTestCase (ObjectFactory schedulerFactory) |
53 : TestCase ("Check that basic event handling is working with " + |
53 : TestCase ("Check that basic event handling is working with " + |
54 schedulerFactory.GetTypeId ().GetName ()), |
54 schedulerFactory.GetTypeId ().GetName ()), |
55 m_schedulerFactory (schedulerFactory) |
55 m_schedulerFactory (schedulerFactory) |
56 {} |
56 { |
|
57 } |
57 uint64_t |
58 uint64_t |
58 SimulatorEventsTestCase::NowUs (void) |
59 SimulatorEventsTestCase::NowUs (void) |
59 { |
60 { |
60 uint64_t ns = Now ().GetNanoSeconds (); |
61 uint64_t ns = Now ().GetNanoSeconds (); |
61 return ns / 1000; |
62 return ns / 1000; |
62 } |
63 } |
63 |
64 |
64 void |
65 void |
65 SimulatorEventsTestCase::A (int a) |
66 SimulatorEventsTestCase::A (int a) |
66 { |
67 { |
67 m_a = false; |
68 m_a = false; |
247 static void cber5 (const int &, const int &, const int &, const int &, const int &) |
248 static void cber5 (const int &, const int &, const int &, const int &, const int &) |
248 {} |
249 {} |
249 |
250 |
250 SimulatorTemplateTestCase::SimulatorTemplateTestCase () |
251 SimulatorTemplateTestCase::SimulatorTemplateTestCase () |
251 : TestCase ("Check that all templates are instanciated correctly. This is a compilation test, it cannot fail at runtime.") |
252 : TestCase ("Check that all templates are instanciated correctly. This is a compilation test, it cannot fail at runtime.") |
252 {} |
253 { |
|
254 } |
253 void |
255 void |
254 SimulatorTemplateTestCase::DoRun (void) |
256 SimulatorTemplateTestCase::DoRun (void) |
255 { |
257 { |
256 // Test schedule of const methods |
258 // Test schedule of const methods |
257 Simulator::Schedule (Seconds (0.0), &SimulatorTemplateTestCase::bar0c, this); |
259 Simulator::Schedule (Seconds (0.0), &SimulatorTemplateTestCase::bar0c, this); |