Skip to content

Commit dd7ec38

Browse files
committed
Remove redundant guards
1 parent 651c1da commit dd7ec38

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

exporters/otlp/test/otlp_grpc_exporter_test.cc

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -291,9 +291,7 @@ TEST_F(OtlpGrpcExporterTestPeer, ConfigFromEnv)
291291
unsetenv("OTEL_EXPORTER_OTLP_HEADERS");
292292
unsetenv("OTEL_EXPORTER_OTLP_TRACES_HEADERS");
293293
}
294-
# endif
295294

296-
# ifndef NO_GETENV
297295
// Test exporter configuration options with use_ssl_credentials
298296
TEST_F(OtlpGrpcExporterTestPeer, ConfigHttpsSecureFromEnv)
299297
{
@@ -309,9 +307,7 @@ TEST_F(OtlpGrpcExporterTestPeer, ConfigHttpsSecureFromEnv)
309307
unsetenv("OTEL_EXPORTER_OTLP_ENDPOINT");
310308
unsetenv("OTEL_EXPORTER_OTLP_TRACES_INSECURE");
311309
}
312-
# endif
313310

314-
# ifndef NO_GETENV
315311
// Test exporter configuration options with use_ssl_credentials
316312
TEST_F(OtlpGrpcExporterTestPeer, ConfigHttpInsecureFromEnv)
317313
{
@@ -327,9 +323,7 @@ TEST_F(OtlpGrpcExporterTestPeer, ConfigHttpInsecureFromEnv)
327323
unsetenv("OTEL_EXPORTER_OTLP_ENDPOINT");
328324
unsetenv("OTEL_EXPORTER_OTLP_TRACES_INSECURE");
329325
}
330-
# endif
331326

332-
# ifndef NO_GETENV
333327
// Test exporter configuration options with use_ssl_credentials
334328
TEST_F(OtlpGrpcExporterTestPeer, ConfigUnknownSecureFromEnv)
335329
{
@@ -344,9 +338,7 @@ TEST_F(OtlpGrpcExporterTestPeer, ConfigUnknownSecureFromEnv)
344338
unsetenv("OTEL_EXPORTER_OTLP_ENDPOINT");
345339
unsetenv("OTEL_EXPORTER_OTLP_TRACES_INSECURE");
346340
}
347-
# endif
348341

349-
# ifndef NO_GETENV
350342
// Test exporter configuration options with use_ssl_credentials
351343
TEST_F(OtlpGrpcExporterTestPeer, ConfigUnknownInsecureFromEnv)
352344
{
@@ -361,9 +353,7 @@ TEST_F(OtlpGrpcExporterTestPeer, ConfigUnknownInsecureFromEnv)
361353
unsetenv("OTEL_EXPORTER_OTLP_ENDPOINT");
362354
unsetenv("OTEL_EXPORTER_OTLP_TRACES_INSECURE");
363355
}
364-
# endif
365356

366-
# ifndef NO_GETENV
367357
TEST_F(OtlpGrpcExporterTestPeer, ConfigRetryDefaultValues)
368358
{
369359
std::unique_ptr<OtlpGrpcExporter> exporter(new OtlpGrpcExporter());

exporters/otlp/test/otlp_grpc_metric_exporter_test.cc

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,7 @@ TEST_F(OtlpGrpcMetricExporterTestPeer, ConfigFromEnv)
132132
unsetenv("OTEL_EXPORTER_OTLP_HEADERS");
133133
unsetenv("OTEL_EXPORTER_OTLP_METRICS_HEADERS");
134134
}
135-
# endif
136135

137-
# ifndef NO_GETENV
138136
// Test exporter configuration options with use_ssl_credentials
139137
TEST_F(OtlpGrpcMetricExporterTestPeer, ConfigHttpsSecureFromEnv)
140138
{
@@ -150,9 +148,7 @@ TEST_F(OtlpGrpcMetricExporterTestPeer, ConfigHttpsSecureFromEnv)
150148
unsetenv("OTEL_EXPORTER_OTLP_ENDPOINT");
151149
unsetenv("OTEL_EXPORTER_OTLP_METRICS_INSECURE");
152150
}
153-
# endif
154151

155-
# ifndef NO_GETENV
156152
// Test exporter configuration options with use_ssl_credentials
157153
TEST_F(OtlpGrpcMetricExporterTestPeer, ConfigHttpInsecureFromEnv)
158154
{
@@ -168,9 +164,7 @@ TEST_F(OtlpGrpcMetricExporterTestPeer, ConfigHttpInsecureFromEnv)
168164
unsetenv("OTEL_EXPORTER_OTLP_ENDPOINT");
169165
unsetenv("OTEL_EXPORTER_OTLP_METRICS_INSECURE");
170166
}
171-
# endif
172167

173-
# ifndef NO_GETENV
174168
// Test exporter configuration options with use_ssl_credentials
175169
TEST_F(OtlpGrpcMetricExporterTestPeer, ConfigUnknownSecureFromEnv)
176170
{
@@ -185,9 +179,7 @@ TEST_F(OtlpGrpcMetricExporterTestPeer, ConfigUnknownSecureFromEnv)
185179
unsetenv("OTEL_EXPORTER_OTLP_ENDPOINT");
186180
unsetenv("OTEL_EXPORTER_OTLP_METRICS_INSECURE");
187181
}
188-
# endif
189182

190-
# ifndef NO_GETENV
191183
// Test exporter configuration options with use_ssl_credentials
192184
TEST_F(OtlpGrpcMetricExporterTestPeer, ConfigUnknownInsecureFromEnv)
193185
{
@@ -202,9 +194,7 @@ TEST_F(OtlpGrpcMetricExporterTestPeer, ConfigUnknownInsecureFromEnv)
202194
unsetenv("OTEL_EXPORTER_OTLP_ENDPOINT");
203195
unsetenv("OTEL_EXPORTER_OTLP_METRICS_INSECURE");
204196
}
205-
# endif
206197

207-
# ifndef NO_GETENV
208198
TEST_F(OtlpGrpcMetricExporterTestPeer, ConfigRetryDefaultValues)
209199
{
210200
std::unique_ptr<OtlpGrpcMetricExporter> exporter(new OtlpGrpcMetricExporter());

0 commit comments

Comments
 (0)