Chromium Code Reviews| Index: base/safe_numerics_unittest.nc |
| =================================================================== |
| --- base/safe_numerics_unittest.nc (revision 245021) |
| +++ base/safe_numerics_unittest.nc (working copy) |
| @@ -1,29 +0,0 @@ |
| -// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
|
akalin
2014/01/16 02:28:12
Just to confirm, you removed these tests because t
jschuh
2014/01/16 02:53:36
Yes, all three of these cases are now supported an
|
| -// Use of this source code is governed by a BSD-style license that can be |
| -// found in the LICENSE file. |
| - |
| -#include <float.h> |
| - |
| -#include "base/safe_numerics.h" |
| - |
| -using base::internal::IsValidNumericCast; |
| - |
| -#if defined(NCTEST_NO_FLOATING_POINT_1) // [r"size of array is negative"] |
| - |
| -void WontCompile() { |
| - IsValidNumericCast<float>(0.0); |
| -} |
| - |
| -#elif defined(NCTEST_NO_FLOATING_POINT_2) // [r"size of array is negative"] |
| - |
| -void WontCompile() { |
| - IsValidNumericCast<double>(0.0f); |
| -} |
| - |
| -#elif defined(NCTEST_NO_FLOATING_POINT_3) // [r"size of array is negative"] |
| - |
| -void WontCompile() { |
| - IsValidNumericCast<int>(DBL_MAX); |
| -} |
| - |
| -#endif |