MCPcopy Create free account
hub / github.com/SIPp/sipp / TEST

Function TEST

src/auth.cpp:996–1002  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

994#include "gtest/gtest.h"
995
996TEST(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
1004TEST(DigestAuth, cnonce) {
1005 char cnonce[10];

Callers

nothing calls this directly

Calls 3

getAuthParameterFunction · 0.85
createAuthHeaderFunction · 0.85
verifyAuthHeaderFunction · 0.85

Tested by

no test coverage detected