mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Improve test coverage of status for HTTP.
This commit is contained in:
parent
0394d95e4b
commit
6ce04051e4
1 changed files with 6 additions and 0 deletions
|
@ -23,3 +23,9 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
#include <srs_utest_http.hpp>
|
#include <srs_utest_http.hpp>
|
||||||
|
|
||||||
#include <srs_http_stack.hpp>
|
#include <srs_http_stack.hpp>
|
||||||
|
|
||||||
|
VOID TEST(ProtoStackTest, StatusCode2Text)
|
||||||
|
{
|
||||||
|
EXPECT_STREQ(SRS_CONSTS_HTTP_OK_str, srs_generate_http_status_text(SRS_CONSTS_HTTP_OK).c_str());
|
||||||
|
EXPECT_STREQ("Status Unknown", srs_generate_http_status_text(999).c_str());
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue