@@ -168,7 +168,7 @@ namespace Svc {
168
168
QUEUE_DEPTH, INSTANCE
169
169
);
170
170
171
- for (NATIVE_UINT_TYPE entry = 0 ; entry < Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS; entry++) {
171
+ for (FwIndexType entry = 0 ; entry < Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS; entry++) {
172
172
this ->pingEntries [entry].warnCycles = Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS+entry;
173
173
this ->pingEntries [entry].fatalCycles = Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS*2 +entry+1 ;
174
174
this ->pingEntries [entry].entryName .format (" task%d" ,entry);
@@ -209,14 +209,14 @@ namespace Svc {
209
209
ASSERT_TLM_SIZE (0 );
210
210
ASSERT_CMD_RESPONSE_SIZE (0 );
211
211
212
- for (NATIVE_UINT_TYPE port = 0 ; port < Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS; port++) {
212
+ for (FwIndexType port = 0 ; port < Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS; port++) {
213
213
this ->keys [port] = port;
214
214
}
215
215
216
216
// invoke run handler same number as number of ports
217
217
for (U32 i = 0 ; i < Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS; i++) {
218
218
this ->invoke_to_Run (0 ,0 );
219
- for (NATIVE_UINT_TYPE port = 0 ; port < Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS; port++) {
219
+ for (FwIndexType port = 0 ; port < Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS; port++) {
220
220
this ->keys [port] += Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS;
221
221
}
222
222
@@ -248,7 +248,7 @@ namespace Svc {
248
248
// invoke run handler enough times for warnings
249
249
for (U32 i = 0 ; i < Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS*2 ; i++) {
250
250
this ->invoke_to_Run (0 ,0 );
251
- for (NATIVE_UINT_TYPE port = 0 ; port < Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS; port++) {
251
+ for (FwIndexType port = 0 ; port < Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS; port++) {
252
252
ASSERT_EQ (i+1 ,this ->component .m_pingTrackerEntries [port].cycleCount );
253
253
}
254
254
}
@@ -258,7 +258,7 @@ namespace Svc {
258
258
ASSERT_TLM_SIZE (Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS);
259
259
ASSERT_EVENTS_HLTH_PING_WARN_SIZE (Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS);
260
260
261
- for (NATIVE_UINT_TYPE port = 0 ; port < Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS; port++) {
261
+ for (FwIndexType port = 0 ; port < Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS; port++) {
262
262
char name[80 ];
263
263
snprintf (name, sizeof (name), " task%d" ,port);
264
264
ASSERT_EVENTS_HLTH_PING_WARN (port,name);
@@ -282,7 +282,7 @@ namespace Svc {
282
282
// invoke run handler enough times for warnings
283
283
for (U32 i = 0 ; i < Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS*2 ; i++) {
284
284
this ->invoke_to_Run (0 ,0 );
285
- for (NATIVE_UINT_TYPE port = 0 ; port < Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS; port++) {
285
+ for (FwIndexType port = 0 ; port < Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS; port++) {
286
286
ASSERT_EQ (i+1 ,this ->component .m_pingTrackerEntries [port].cycleCount );
287
287
}
288
288
}
@@ -292,7 +292,7 @@ namespace Svc {
292
292
ASSERT_TLM_SIZE (Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS);
293
293
ASSERT_EVENTS_HLTH_PING_WARN_SIZE (Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS);
294
294
295
- for (NATIVE_UINT_TYPE port = 0 ; port < Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS; port++) {
295
+ for (FwIndexType port = 0 ; port < Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS; port++) {
296
296
char name[80 ];
297
297
snprintf (name, sizeof (name), " task%d" ,port);
298
298
ASSERT_EVENTS_HLTH_PING_WARN (port,name);
@@ -304,7 +304,7 @@ namespace Svc {
304
304
// invoke run handler enough times for FATALs
305
305
for (U32 i = 0 ; i < Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS; i++) {
306
306
this ->invoke_to_Run (0 ,0 );
307
- for (NATIVE_UINT_TYPE port = 0 ; port < Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS; port++) {
307
+ for (FwIndexType port = 0 ; port < Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS; port++) {
308
308
ASSERT_EQ (Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS*2 +i+1 ,this ->component .m_pingTrackerEntries [port].cycleCount );
309
309
}
310
310
}
@@ -314,7 +314,7 @@ namespace Svc {
314
314
ASSERT_EVENTS_SIZE (Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS);
315
315
ASSERT_EVENTS_HLTH_PING_LATE_SIZE (Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS);
316
316
317
- for (NATIVE_UINT_TYPE port = 0 ; port < Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS; port++) {
317
+ for (FwIndexType port = 0 ; port < Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS; port++) {
318
318
char name[80 ];
319
319
snprintf (name, sizeof (name), " task%d" ,port);
320
320
ASSERT_EVENTS_HLTH_PING_LATE (port,name);
@@ -337,14 +337,14 @@ namespace Svc {
337
337
// invoke run handler
338
338
for (U32 i = 0 ; i < Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS*2 ; i++) {
339
339
this ->invoke_to_Run (0 ,0 );
340
- for (NATIVE_INT_TYPE entry = 0 ; entry < Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS; entry++) {
340
+ for (FwIndexType entry = 0 ; entry < Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS; entry++) {
341
341
ASSERT_EQ (i+1 ,this ->component .m_pingTrackerEntries [entry].cycleCount );
342
342
}
343
343
}
344
344
345
345
ASSERT_EVENTS_SIZE (Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS);
346
346
ASSERT_EVENTS_HLTH_PING_WARN_SIZE (Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS);
347
- for (NATIVE_INT_TYPE entry = 0 ; entry < Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS; entry++) {
347
+ for (FwIndexType entry = 0 ; entry < Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS; entry++) {
348
348
char name[80 ];
349
349
snprintf (name, sizeof (name), " task%d" ,entry);
350
350
ASSERT_EVENTS_HLTH_PING_WARN (entry, name);
@@ -395,7 +395,7 @@ namespace Svc {
395
395
// check that cycle counts increase again
396
396
for (U32 i = 0 ; i < Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS; i++) {
397
397
this ->invoke_to_Run (0 ,0 );
398
- for (NATIVE_INT_TYPE entry = 0 ; entry < Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS; entry++) {
398
+ for (FwIndexType entry = 0 ; entry < Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS; entry++) {
399
399
ASSERT_EQ (Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS*2 +1 +i,this ->component .m_pingTrackerEntries [entry].cycleCount );
400
400
}
401
401
}
@@ -404,7 +404,7 @@ namespace Svc {
404
404
// Should be FATAL timeouts
405
405
ASSERT_EVENTS_SIZE (Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS);
406
406
ASSERT_EVENTS_HLTH_PING_LATE_SIZE (Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS);
407
- for (NATIVE_INT_TYPE entry = 0 ; entry < Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS; entry++) {
407
+ for (FwIndexType entry = 0 ; entry < Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS; entry++) {
408
408
char name[80 ];
409
409
snprintf (name,sizeof (name), " task%d" ,entry);
410
410
ASSERT_EVENTS_HLTH_PING_LATE (entry,name);
@@ -426,11 +426,11 @@ namespace Svc {
426
426
427
427
// disable monitoring one at a time
428
428
429
- for (NATIVE_INT_TYPE entry = 0 ; entry < Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS; entry++) {
429
+ for (FwIndexType entry = 0 ; entry < Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS; entry++) {
430
430
this ->clearEvents ();
431
431
this ->clearHistory ();
432
432
// reset cycle count
433
- for (NATIVE_INT_TYPE e2 = 0 ; e2 < Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS; e2 ++) {
433
+ for (FwIndexType e2 = 0 ; e2 < Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS; e2 ++) {
434
434
this ->component .m_pingTrackerEntries [e2 ].cycleCount = 0 ;
435
435
}
436
436
// disable entry
@@ -446,13 +446,13 @@ namespace Svc {
446
446
ASSERT_EVENTS_HLTH_CHECK_PING (0 ,Fw::Enabled::DISABLED,name);
447
447
448
448
// run a few cycles
449
- for (NATIVE_INT_TYPE cycle = 0 ; cycle < Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS; cycle++) {
449
+ for (FwIndexType cycle = 0 ; cycle < Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS; cycle++) {
450
450
451
451
// run a cycle
452
452
this ->invoke_to_Run (0 ,0 );
453
453
454
454
// verify only enable entries count up
455
- for (NATIVE_INT_TYPE e3 = 0 ; e3 < Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS; e3 ++) {
455
+ for (FwIndexType e3 = 0 ; e3 < Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS; e3 ++) {
456
456
if (e3 == entry) {
457
457
// shouldn't be counting up
458
458
ASSERT_EQ (0u ,this ->component .m_pingTrackerEntries [e3 ].cycleCount );
@@ -488,7 +488,7 @@ namespace Svc {
488
488
ASSERT_TLM_SIZE (0 );
489
489
ASSERT_CMD_RESPONSE_SIZE (0 );
490
490
491
- for (NATIVE_UINT_TYPE entry = 0 ; entry < Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS; entry++) {
491
+ for (FwIndexType entry = 0 ; entry < Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS; entry++) {
492
492
this ->clearEvents ();
493
493
this ->clearHistory ();
494
494
// verify previous value
@@ -596,7 +596,7 @@ namespace Svc {
596
596
ASSERT_EVENTS_SIZE (0 );
597
597
ASSERT_TLM_SIZE (0 );
598
598
599
- for (NATIVE_INT_TYPE entry = 0 ; entry < Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS; entry++) {
599
+ for (FwIndexType entry = 0 ; entry < Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS; entry++) {
600
600
this ->keys [entry] = entry;
601
601
}
602
602
@@ -654,7 +654,7 @@ namespace Svc {
654
654
// check for expected EVRs
655
655
ASSERT_EVENTS_SIZE (Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS);
656
656
ASSERT_EVENTS_HLTH_PING_WRONG_KEY_SIZE (Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS);
657
- for (NATIVE_INT_TYPE port = 0 ; port < Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS; port++) {
657
+ for (FwIndexType port = 0 ; port < Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS; port++) {
658
658
char name[80 ];
659
659
snprintf (name, sizeof (name), " task%d" ,port);
660
660
ASSERT_EVENTS_HLTH_PING_WRONG_KEY (port,name,FLAG_KEY_VALUE);
@@ -717,7 +717,7 @@ namespace Svc {
717
717
ASSERT_EVENTS_SIZE (0 );
718
718
719
719
// set up the correct keys for all ports except last
720
- for (NATIVE_INT_TYPE port = 0 ; port < Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS - 1 ; port++) {
720
+ for (FwIndexType port = 0 ; port < Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS - 1 ; port++) {
721
721
this ->keys [port] = port;
722
722
}
723
723
this ->keys [Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS - 1 ] = 9999 ;
@@ -735,7 +735,7 @@ namespace Svc {
735
735
// invoke schedIn
736
736
this ->invoke_to_Run (0 ,0 );
737
737
738
- for (NATIVE_INT_TYPE port = 0 ; port < Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS - 1 ; port++) {
738
+ for (FwIndexType port = 0 ; port < Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS - 1 ; port++) {
739
739
if (i == 0 ) {
740
740
this ->keys [port] += Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS;
741
741
} else {
0 commit comments