Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2593)

Unified Diff: base/numerics/safe_numerics_unittest.cc

Issue 2481903002: Make checked_cast a constexpr (Closed)
Patch Set: nit Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/numerics/safe_conversions.h ('k') | components/autofill/core/common/save_password_progress_logger.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/numerics/safe_numerics_unittest.cc
diff --git a/base/numerics/safe_numerics_unittest.cc b/base/numerics/safe_numerics_unittest.cc
index daef09960c918f7318d3c217713a5eab3d0f119c..f027cd934d49599d7d992385491fc3a6a355b4be 100644
--- a/base/numerics/safe_numerics_unittest.cc
+++ b/base/numerics/safe_numerics_unittest.cc
@@ -664,7 +664,7 @@ TEST(SafeNumerics, SaturatedCastChecks) {
std::numeric_limits<float>::infinity();
EXPECT_TRUE(std::isnan(not_a_number));
EXPECT_DEATH_IF_SUPPORTED(
- (saturated_cast<int, base::SaturatedCastNaNBehaviorCheck>(not_a_number)),
+ (saturated_cast<int, base::CheckOnFailure>(not_a_number)),
"");
}
« no previous file with comments | « base/numerics/safe_conversions.h ('k') | components/autofill/core/common/save_password_progress_logger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698