Expose the method used for the next URLRequest redirect.
[chromium-blink-merge.git] / base / safe_numerics_unittest.nc
blob4219cd56a468cb5388b01dbd5828a85075e50264
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include <float.h>
7 #include "base/safe_numerics.h"
9 using base::internal::IsValidNumericCast;
11 #if defined(NCTEST_NO_FLOATING_POINT_1)  // [r"size of array is negative"]
13 void WontCompile() {
14   IsValidNumericCast<float>(0.0);
17 #elif defined(NCTEST_NO_FLOATING_POINT_2)  // [r"size of array is negative"]
19 void WontCompile() {
20   IsValidNumericCast<double>(0.0f);
23 #elif defined(NCTEST_NO_FLOATING_POINT_3)  // [r"size of array is negative"]
25 void WontCompile() {
26   IsValidNumericCast<int>(DBL_MAX);
29 #endif