Add numeric_cast for checked integral narrowing casts
In work on bringing up Windows x64, there are many places that need
to be safely narrowed to the types used for interacting with other
APIs (particularly when using containers). Rather than scatter these
CHECKs all over, numeric_cast<> CHECKs that the runtime value can be
safely converted to the target type.
BUG=8606, 167187, 166496
Review URL: https://codereview.chromium.org/11886037
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@177264 0039d316-1c4b-4281-b951-d872f2087c98
CrOS-Libchrome-Original-Commit: c1c090d3f77597a8c759be30df0213b086c275f5
diff --git a/base/base.gyp b/base/base.gyp
index 7525a92..67b122b 100644
--- a/base/base.gyp
+++ b/base/base.gyp
@@ -543,6 +543,8 @@
'process_util_unittest_mac.mm',
'profiler/tracked_time_unittest.cc',
'rand_util_unittest.cc',
+ 'safe_numerics_unittest.cc',
+ 'safe_numerics_unittest.nc',
'scoped_native_library_unittest.cc',
'scoped_observer.h',
'security_unittest.cc',