| 32 | } // namespace |
| 33 | |
| 34 | int main() |
| 35 | { |
| 36 | checkProfileLoad(QStringLiteral("profile global load \"SO2R\""), |
| 37 | QStringLiteral("global"), |
| 38 | QStringLiteral("SO2R"), |
| 39 | "global profile load command parses"); |
| 40 | check(profileLoadMayRebuildRadioTopology(QStringLiteral("global")), |
| 41 | "global profile load is topology-changing"); |
| 42 | |
| 43 | checkProfileLoad(QStringLiteral(" profile TX load \"Low Power\" "), |
| 44 | QStringLiteral("tx"), |
| 45 | QStringLiteral("Low Power"), |
| 46 | "TX profile load command parses case-insensitively"); |
| 47 | check(!profileLoadMayRebuildRadioTopology(QStringLiteral("tx")), |
| 48 | "TX profile load is not topology-changing"); |
| 49 | |
| 50 | checkProfileLoad(QStringLiteral("profile mic load \"Studio Mic\""), |
| 51 | QStringLiteral("mic"), |
| 52 | QStringLiteral("Studio Mic"), |
| 53 | "mic profile load command parses"); |
| 54 | check(!profileLoadMayRebuildRadioTopology(QStringLiteral("mic")), |
| 55 | "mic profile load is not topology-changing"); |
| 56 | |
| 57 | check(!parseProfileLoadCommand(QStringLiteral("profile global save \"SO2R\"")).valid, |
| 58 | "non-load profile command is ignored"); |
| 59 | check(kProfileLoadDeferredPanFlushDelayMs > kProfileLoadStateWriteHoldMs, |
| 60 | "deferred pan flush runs after profile-load write hold"); |
| 61 | check(kProfileLoadPostHoldRecoveryDelayMs > kProfileLoadDeferredPanFlushDelayMs, |
| 62 | "post-hold recovery runs after deferred pan flush"); |
| 63 | |
| 64 | return failures == 0 ? 0 : 1; |
| 65 | } |
nothing calls this directly
no test coverage detected