From 848712f89eb2fa15f12e1560ed6f4b2342f4e57a Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Tue, 28 Nov 2023 12:05:52 -0500 Subject: [PATCH] tests: Remove accidental C++20 dependency (see #3611) --- tests/ceftests/test_handler.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/ceftests/test_handler.cc b/tests/ceftests/test_handler.cc index ac8ee1251..547f66d45 100644 --- a/tests/ceftests/test_handler.cc +++ b/tests/ceftests/test_handler.cc @@ -320,7 +320,8 @@ void TestHandler::OnCreated(int browser_id, bool views_hosted) { CHECK(use_views_ || !views_hosted); - const bool has_value = browser_status_map_.contains(browser_id); + const bool has_value = + browser_status_map_.find(browser_id) != browser_status_map_.end(); auto& browser_status = browser_status_map_[browser_id]; if (has_value) {