summaryrefslogtreecommitdiffstats
path: root/base/safe_numerics_unittest.nc
Commit message (Collapse)AuthorAgeFilesLines
* Fix no-compile tests in base.dcheng@chromium.org2013-01-231-5/+17
| | | | | | | | | | | | | | | - Fixed a nocompile test wasn't ever no compiled (probably a side effect of http://crrev.com/111889) and never worked. - Updated the error messages to those used by gcc 4.6 in Precise - Minor improvement to the nocompile driver that makes the compiler output more friendly when the regex includes a single quote. Hopefully no one needs to match a double quote for awhile... TBR=darin Review URL: https://codereview.chromium.org/12040055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178434 0039d316-1c4b-4281-b951-d872f2087c98
* Add numeric_cast for checked integral narrowing castsscottmg@chromium.org2013-01-161-0/+17
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