forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathintegration_test.h
More file actions
30 lines (26 loc) · 1.03 KB
/
integration_test.h
File metadata and controls
30 lines (26 loc) · 1.03 KB
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
28
29
30
#pragma once
#include "test/integration/http_integration.h"
#include "test/test_common/utility.h"
#include "gtest/gtest.h"
// A test class for testing HTTP/1.1 upstream and downstreams
namespace Envoy {
// TODO(#28841) parameterize to run with and without UHV
class IntegrationTest : public testing::TestWithParam<Network::Address::IpVersion>,
public HttpIntegrationTest {
public:
IntegrationTest() : HttpIntegrationTest(Http::CodecType::HTTP1, GetParam()) {}
};
// TODO(#28841) parameterize to run with and without UHV
class UpstreamEndpointIntegrationTest : public testing::TestWithParam<Network::Address::IpVersion>,
public HttpIntegrationTest {
public:
UpstreamEndpointIntegrationTest()
: HttpIntegrationTest(
Http::CodecType::HTTP1,
[](int) {
return Network::Utility::parseInternetAddressNoThrow(
Network::Test::getLoopbackAddressString(GetParam()), 0);
},
GetParam()) {}
};
} // namespace Envoy