14 TEST(UrlEncodedPostTests, AsyncGetTest) {
15 auto url =
Url{
base +
"/hello.html"};
18 auto response = future.get();
25 TEST(UrlEncodedPostTests, AsyncGetMultipleTest) {
26 auto url =
Url{
base +
"/hello.html"};
27 std::vector<AsyncResponse> responses;
28 for (
int i = 0;
i < 10; ++
i) {
31 for (
auto& future : responses) {
33 auto response = future.get();
41 TEST(UrlEncodedPostTests, AsyncGetMultipleReflectTest) {
42 auto url =
Url{
base +
"/hello.html"};
43 std::vector<AsyncResponse> responses;
44 for (
int i = 0;
i < 100; ++
i) {
49 for (
auto& future : responses) {
51 auto response = future.get();
53 auto expected_url =
Url{url +
"?key=" + std::to_string(i)};
61 int main(
int argc,
char** argv) {
Environment * AddGlobalTestEnvironment(Environment *env)
TEST(UrlEncodedPostTests, AsyncGetTest)
AsyncResponse GetAsync(Ts...ts)
int main(int argc, char **argv)
#define EXPECT_EQ(expected, actual)
int RUN_ALL_TESTS() GTEST_MUST_USE_RESULT_
GTEST_API_ void InitGoogleTest(int *argc, char **argv)