forked from istio/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
integration_test.h
27 lines (23 loc) · 916 Bytes
/
integration_test.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#pragma once
#include "test/integration/http_integration.h"
#include "gtest/gtest.h"
// A test class for testing HTTP/1.1 upstream and downstreams
namespace Envoy {
class IntegrationTest : public testing::TestWithParam<Network::Address::IpVersion>,
public HttpIntegrationTest {
public:
IntegrationTest() : HttpIntegrationTest(Http::CodecClient::Type::HTTP1, GetParam()) {}
};
class UpstreamEndpointIntegrationTest : public testing::TestWithParam<Network::Address::IpVersion>,
public HttpIntegrationTest {
public:
UpstreamEndpointIntegrationTest()
: HttpIntegrationTest(
Http::CodecClient::Type::HTTP1,
[](int) {
return Network::Utility::parseInternetAddress(
Network::Test::getLoopbackAddressString(GetParam()), 0);
},
GetParam()) {}
};
} // namespace Envoy