| 14 | namespace |
| 15 | { |
| 16 | CrashPhase ClampPhase(int rawPhase) |
| 17 | { |
| 18 | if (rawPhase <= static_cast<int>(CrashPhase::SessionOpen)) { |
| 19 | return CrashPhase::SessionOpen; |
| 20 | } |
| 21 | if (rawPhase >= static_cast<int>(CrashPhase::QueryPolling)) { |
| 22 | return CrashPhase::QueryPolling; |
| 23 | } |
| 24 | return static_cast<CrashPhase>(rawPhase); |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | int ServiceCrashClientTest(std::unique_ptr<pmapi::Session> pSession) |
no outgoing calls
no test coverage detected