| 2 | #include "gtest/gtest.h" |
| 3 | |
| 4 | TEST(S3RESTfulService, GetWithWrongHeader) { |
| 5 | HTTPHeaders headers; |
| 6 | S3RESTfulService service; |
| 7 | |
| 8 | string url = "https://www.bing.com/"; |
| 9 | headers.Add(HOST, url); |
| 10 | headers.Add(CONTENTTYPE, "plain/text"); |
| 11 | |
| 12 | Response resp = service.get(url, headers); |
| 13 | |
| 14 | EXPECT_EQ(RESPONSE_ERROR, resp.getStatus()); |
| 15 | } |
| 16 | |
| 17 | TEST(S3RESTfulService, GetWithEmptyHeader) { |
| 18 | HTTPHeaders headers; |
nothing calls this directly
no test coverage detected