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

Unified Diff: base/numerics/safe_numerics_unittest.cc

Issue 141113003: Refactor base/safe_numerics.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 11 months 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_impl.h ('k') | base/safe_numerics.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/numerics/safe_numerics_unittest.cc
===================================================================
--- base/numerics/safe_numerics_unittest.cc (revision 0)
+++ base/numerics/safe_numerics_unittest.cc (working copy)
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "base/safe_numerics.h"
+#include "base/numerics/safe_conversions.h"
#include <stdint.h>
@@ -258,7 +258,7 @@
double double_infinity = std::numeric_limits<float>::infinity();
// Just test that the cast compiles, since the other tests cover logic.
- EXPECT_EQ(0, base::checked_numeric_cast<int>(static_cast<size_t>(0)));
+ EXPECT_EQ(0, base::checked_cast<int>(static_cast<size_t>(0)));
// Test various saturation corner cases.
EXPECT_EQ(saturated_cast<int>(small_negative),
@@ -277,3 +277,4 @@
} // namespace internal
} // namespace base
+
« no previous file with comments | « base/numerics/safe_conversions_impl.h ('k') | base/safe_numerics.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698