| 379 | } |
| 380 | |
| 381 | bool ValidateFrameType(PM_FRAME_TYPE gold, PM_FRAME_TYPE test) { |
| 382 | // Gold FrameType may be NotSet, Repeated or Application. If Gold is one of NotSet, Unspecified or Repeated test must match. If Gold is |
| 383 | // Application, test can be Application, NotSet, or Repeated. The reason for this is if the gold file was generated from PresentMon version |
| 384 | // that had DEBUG_FRAME_TYPE defined. |
| 385 | if (gold == PM_FRAME_TYPE_NOT_SET || gold == PM_FRAME_TYPE_UNSPECIFIED || gold == PM_FRAME_TYPE_REPEATED) { |
| 386 | return test == gold; |
| 387 | } |
| 388 | else if (gold == PM_FRAME_TYPE_APPLICATION) { |
| 389 | return test == PM_FRAME_TYPE_APPLICATION || test == PM_FRAME_TYPE_NOT_SET || test == PM_FRAME_TYPE_REPEATED; |
| 390 | } |
| 391 | else { |
| 392 | return gold == test; |
| 393 | } |
| 394 | |
| 395 | } |
| 396 | |
| 397 | template<typename T> |
| 398 | bool Validate(const T& param1, const T& param2) { |
no outgoing calls
no test coverage detected