| 518 | #endif |
| 519 | |
| 520 | TEST_P(dmHttpClientTest, Simple) |
| 521 | { |
| 522 | char buf[128]; |
| 523 | |
| 524 | for (int i = 0; i < NUM_ITERATIONS; ++i) |
| 525 | { |
| 526 | dmSnPrintf(buf, sizeof(buf), "/add/%d/1000", i); |
| 527 | dmHttpClient::Result r = HttpGet(buf); |
| 528 | ASSERT_EQ(dmHttpClient::RESULT_OK, r); |
| 529 | ASSERT_EQ(1000 + i, strtol(m_Content.c_str(), 0, 10)); |
| 530 | } |
| 531 | } |
| 532 | |
| 533 | struct HttpStressHelper |
| 534 | { |
nothing calls this directly
no test coverage detected