| 1695 | }; |
| 1696 | |
| 1697 | foreach (const string& accept, headers) { |
| 1698 | http::Request request; |
| 1699 | request.headers["Accept"] = accept; |
| 1700 | |
| 1701 | EXPECT_FALSE(request.acceptsMediaType("text/*")) |
| 1702 | << "Not expecting " << accept << " to match 'text/*'"; |
| 1703 | |
| 1704 | EXPECT_FALSE(request.acceptsMediaType("text/html")) |
| 1705 | << "Not expecting " << accept << " to match 'text/html'"; |
| 1706 | } |
| 1707 | |
| 1708 | // Create requests that accept 'text/html' media type. |
| 1709 | headers = { |
nothing calls this directly
no test coverage detected