| 1 | /* |
| 2 | * Copyright (C) 2026 Teluu Inc. (http://www.teluu.com) |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License as published by |
| 6 | * the Free Software Foundation; either version 2 of the License, or |
| 7 | * (at your option) any later version. |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU General Public License |
| 15 | * along with this program; if not, write to the Free Software |
| 16 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 17 | */ |
| 18 | |
| 19 | #ifndef AUTH_CHALLENGE_TESTS_HPP |
| 20 | #define AUTH_CHALLENGE_TESTS_HPP |
| 21 | |
| 22 | #include <pjsua2.hpp> |
| 23 | #include <memory> |
| 24 | |
| 25 | using namespace pj; |
| 26 | |
| 27 | class AuthChallengeTests |
| 28 | { |
| 29 | public: |
| 30 | AuthChallengeTests(); |
| 31 | AuthChallengeTests(const AuthChallengeTests&) = delete; |
| 32 | AuthChallengeTests& operator=(const AuthChallengeTests&) = delete; |
| 33 | ~AuthChallengeTests(); |
| 34 | |
| 35 | void immediateResponse(); |
| 36 | void deferredResponse(); |
| 37 | void deferredRespondWithCreds(); |
| 38 | void deferredAbandon(); |
| 39 | void accountDeleteWithPending(); |
| 40 | |
| 41 | private: |
| 42 | Endpoint ep; |
| 43 | pj_uint16_t port; |
| 44 | }; |
| 45 | |
| 46 | #endif // AUTH_CHALLENGE_TESTS_HPP |