| 994 | #include "gtest/gtest.h" |
| 995 | |
| 996 | TEST(DigestAuth, nonce) { |
| 997 | char nonce[40]; |
| 998 | getAuthParameter("nonce", " Authorization: Digest cnonce=\"c7e1249f\",nonce=\"a6ca2bf13de1433183f7c48781bd9304\"", nonce, sizeof(nonce)); |
| 999 | EXPECT_STREQ("a6ca2bf13de1433183f7c48781bd9304", nonce); |
| 1000 | getAuthParameter("nonce", " Authorization: Digest nonce=\"a6ca2bf13de1433183f7c48781bd9304\", cnonce=\"c7e1249f\"", nonce, sizeof(nonce)); |
| 1001 | EXPECT_STREQ("a6ca2bf13de1433183f7c48781bd9304", nonce); |
| 1002 | } |
| 1003 | |
| 1004 | TEST(DigestAuth, cnonce) { |
| 1005 | char cnonce[10]; |
nothing calls this directly
no test coverage detected