| 1796 | }; |
| 1797 | |
| 1798 | foreach (const string& accept, headers) { |
| 1799 | http::Request request; |
| 1800 | request.headers["Accept"] = accept; |
| 1801 | |
| 1802 | EXPECT_FALSE(request.acceptsMediaType("text/*")) |
| 1803 | << "Not expecting " << accept << " to match 'text/*'"; |
| 1804 | |
| 1805 | EXPECT_FALSE(request.acceptsMediaType("text/html")) |
| 1806 | << "Not expecting " << accept << " to match 'text/html'"; |
| 1807 | } |
| 1808 | |
| 1809 | // Create requests that accept 'text/html' media type. |
| 1810 | headers = { |
nothing calls this directly
no test coverage detected