From 9128604b0320964decd3fc8a27d79438ff8bf863 Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Wed, 19 Apr 2023 08:37:53 -0700 Subject: [PATCH] [stats] Add a test for IncrementHttp2MetadataSize(0) (#32896) This test proves that `global_stats.IncrementHttp2MetadataSize(0)` works --- test/core/debug/stats_test.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/core/debug/stats_test.cc b/test/core/debug/stats_test.cc index eb2b969d275..b800aedc7f5 100644 --- a/test/core/debug/stats_test.cc +++ b/test/core/debug/stats_test.cc @@ -52,6 +52,11 @@ TEST(StatsTest, IncSpecificCounter) { EXPECT_EQ(snapshot->delta()->client_calls_created, 1); } +TEST(StatsTest, IncrementHttp2MetadataSize) { + ExecCtx exec_ctx; + global_stats().IncrementHttp2MetadataSize(0); +} + static int FindExpectedBucket(const HistogramView& h, int value) { if (value < 0) { return 0;