Index: content/renderer/java/gin_java_bridge_value_converter_unittest.cc |
diff --git a/content/renderer/java/gin_java_bridge_value_converter_unittest.cc b/content/renderer/java/gin_java_bridge_value_converter_unittest.cc |
index edffce70501acf35b2368082be6ac3d5c861f1cb..b0ef27a06d359436f6361ad2ab04aacd6e27f5eb 100644 |
--- a/content/renderer/java/gin_java_bridge_value_converter_unittest.cc |
+++ b/content/renderer/java/gin_java_bridge_value_converter_unittest.cc |
@@ -2,8 +2,9 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+#include <cmath> |
+ |
#include "base/basictypes.h" |
-#include "base/float_util.h" |
#include "base/memory/scoped_ptr.h" |
#include "base/strings/stringprintf.h" |
#include "content/common/android/gin_java_bridge_value.h" |
@@ -67,8 +68,7 @@ TEST_F(GinJavaBridgeValueConverterTest, BasicValues) { |
EXPECT_TRUE( |
infinity_value->IsType(GinJavaBridgeValue::TYPE_NONFINITE)); |
EXPECT_TRUE(infinity_value->GetAsNonFinite(&native_float)); |
- EXPECT_FALSE(base::IsFinite(native_float)); |
- EXPECT_FALSE(base::IsNaN(native_float)); |
+ EXPECT_TRUE(std::isinf(native_float)); |
} |
TEST_F(GinJavaBridgeValueConverterTest, ArrayBuffer) { |