Changeset 44255 in vbox for trunk/include/iprt/test.h
- Timestamp:
- Jan 8, 2013 3:14:06 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/test.h
r44221 r44255 30 30 #include <iprt/types.h> 31 31 #include <iprt/stdarg.h> 32 #include <iprt/assert.h> 32 33 33 34 RT_C_DECLS_BEGIN … … 331 332 /** 332 333 * Value units. 334 * 335 * @remarks This is an interface where we have to be binary compatible with both 336 * older versions of this header and other components using the same 337 * contant values. 338 * @remarks When adding a new item: 339 * - Always add at the end of the list - do NOT group it. 340 * - Add it to rtTestUnitName in r3/test.cpp. 341 * - include/VBox/VMMDevTesting.h (VMMDEV_TESTING_UNIT_XXX). 342 * - Add it to g_aszBs2TestUnitNames in 343 * TestSuite/bootsectors/bootsector2-common-routines.mac. 344 * 333 345 */ 334 346 typedef enum RTTESTUNIT 335 347 { 336 /** The usual invalidvalue. */348 /** The customary invalid zero value. */ 337 349 RTTESTUNIT_INVALID = 0, 338 /** Percentage (10^-2). */ 339 RTTESTUNIT_PCT, 340 /** Bytes. */ 341 RTTESTUNIT_BYTES, 342 /** Bytes per second. */ 343 RTTESTUNIT_BYTES_PER_SEC, 344 /** Kilobytes. */ 345 RTTESTUNIT_KILOBYTES, 346 /** Kilobytes per second. */ 347 RTTESTUNIT_KILOBYTES_PER_SEC, 348 /** Megabytes. */ 349 RTTESTUNIT_MEGABYTES, 350 /** Megabytes per second. */ 351 RTTESTUNIT_MEGABYTES_PER_SEC, 352 /** Packets. */ 353 RTTESTUNIT_PACKETS, 354 /** Packets per second. */ 355 RTTESTUNIT_PACKETS_PER_SEC, 356 /** Frames. */ 357 RTTESTUNIT_FRAMES, 358 /** Frames per second. */ 359 RTTESTUNIT_FRAMES_PER_SEC, 360 /** Occurrences. */ 361 RTTESTUNIT_OCCURRENCES, 362 /** Occurrences per second. */ 363 RTTESTUNIT_OCCURRENCES_PER_SEC, 364 /** Calls. */ 365 RTTESTUNIT_CALLS, 366 /** Calls per second. */ 367 RTTESTUNIT_CALLS_PER_SEC, 368 /** Round trips. */ 369 RTTESTUNIT_ROUND_TRIP, 370 /** Seconds. */ 371 RTTESTUNIT_SECS, 372 /** Milliseconds. */ 373 RTTESTUNIT_MS, 374 /** Nanoseconds. */ 375 RTTESTUNIT_NS, 376 /** Nanoseconds per call. */ 377 RTTESTUNIT_NS_PER_CALL, 378 /** Nanoseconds per frame. */ 379 RTTESTUNIT_NS_PER_FRAME, 380 /** Nanoseconds per occurrence. */ 381 RTTESTUNIT_NS_PER_OCCURRENCE, 382 /** Nanoseconds per frame. */ 383 RTTESTUNIT_NS_PER_PACKET, 384 /** Nanoseconds per round trip. */ 385 RTTESTUNIT_NS_PER_ROUND_TRIP, 386 /** Parts per thousand (10^-3). */ 387 RTTESTUNIT_PP1K, 388 /** Parts per ten thousand (10^-4). */ 389 RTTESTUNIT_PP10K, 390 /** Parts per million (10^-6). */ 391 RTTESTUNIT_PPM, 392 /** Parts per billion (10^-9). */ 393 RTTESTUNIT_PPB, 350 351 RTTESTUNIT_PCT, /**< Percentage (10^-2). */ 352 RTTESTUNIT_BYTES, /**< Bytes. */ 353 RTTESTUNIT_BYTES_PER_SEC, /**< Bytes per second. */ 354 RTTESTUNIT_KILOBYTES, /**< Kilobytes. */ 355 RTTESTUNIT_KILOBYTES_PER_SEC, /**< Kilobytes per second. */ 356 RTTESTUNIT_MEGABYTES, /**< Megabytes. */ 357 RTTESTUNIT_MEGABYTES_PER_SEC, /**< Megabytes per second. */ 358 RTTESTUNIT_PACKETS, /**< Packets. */ 359 RTTESTUNIT_PACKETS_PER_SEC, /**< Packets per second. */ 360 RTTESTUNIT_FRAMES, /**< Frames. */ 361 RTTESTUNIT_FRAMES_PER_SEC, /**< Frames per second. */ 362 RTTESTUNIT_OCCURRENCES, /**< Occurrences. */ 363 RTTESTUNIT_OCCURRENCES_PER_SEC, /**< Occurrences per second. */ 364 RTTESTUNIT_CALLS, /**< Calls. */ 365 RTTESTUNIT_CALLS_PER_SEC, /**< Calls per second. */ 366 RTTESTUNIT_ROUND_TRIP, /**< Round trips. */ 367 RTTESTUNIT_SECS, /**< Seconds. */ 368 RTTESTUNIT_MS, /**< Milliseconds. */ 369 RTTESTUNIT_NS, /**< Nanoseconds. */ 370 RTTESTUNIT_NS_PER_CALL, /**< Nanoseconds per call. */ 371 RTTESTUNIT_NS_PER_FRAME, /**< Nanoseconds per frame. */ 372 RTTESTUNIT_NS_PER_OCCURRENCE, /**< Nanoseconds per occurrence. */ 373 RTTESTUNIT_NS_PER_PACKET, /**< Nanoseconds per frame. */ 374 RTTESTUNIT_NS_PER_ROUND_TRIP, /**< Nanoseconds per round trip. */ 375 RTTESTUNIT_INSTRS, /**< Instructions. */ 376 RTTESTUNIT_INSTRS_PER_SEC, /**< Instructions per second. */ 377 RTTESTUNIT_NONE, /**< No unit. */ 378 RTTESTUNIT_PP1K, /**< Parts per thousand (10^-3). */ 379 RTTESTUNIT_PP10K, /**< Parts per ten thousand (10^-4). */ 380 RTTESTUNIT_PPM, /**< Parts per million (10^-6). */ 381 RTTESTUNIT_PPB, /**< Parts per billion (10^-9). */ 382 394 383 /** The end of valid units. */ 395 384 RTTESTUNIT_END 396 385 } RTTESTUNIT; 386 AssertCompile(RTTESTUNIT_INSTRS == 0x19); 387 AssertCompile(RTTESTUNIT_NONE == 0x1b); 397 388 398 389 /**
Note:
See TracChangeset
for help on using the changeset viewer.