Index: Source/platform/geometry/GeometryTestHelpers.cpp |
diff --git a/Source/platform/geometry/GeometryTestHelpers.cpp b/Source/platform/geometry/GeometryTestHelpers.cpp |
index 64369446c9fd0cb96a610cd44d11568558615f36..743ee1f0e58165ff329f18711c8caa3a533c59bf 100644 |
--- a/Source/platform/geometry/GeometryTestHelpers.cpp |
+++ b/Source/platform/geometry/GeometryTestHelpers.cpp |
@@ -8,7 +8,10 @@ |
#include <limits> |
#include <math.h> |
-bool blink::GeometryTest::ApproximatelyEqual(float a, float b, float testEpsilon) |
+namespace blink { |
+namespace GeometryTest { |
+ |
+bool ApproximatelyEqual(float a, float b, float testEpsilon) |
{ |
float absA = ::fabs(a); |
float absB = ::fabs(b); |
@@ -22,7 +25,7 @@ bool blink::GeometryTest::ApproximatelyEqual(float a, float b, float testEpsilon |
return ((absErr / (absA + absB)) < testEpsilon); |
} |
-::testing::AssertionResult blink::GeometryTest::AssertAlmostEqual(const char* actual_expr, const char* expected_expr, float actual, float expected, float testEpsilon) |
+::testing::AssertionResult AssertAlmostEqual(const char* actual_expr, const char* expected_expr, float actual, float expected, float testEpsilon) |
{ |
if (!ApproximatelyEqual(actual, expected, testEpsilon)) { |
return ::testing::AssertionFailure() << " Value of:" << actual_expr << std::endl |
@@ -33,3 +36,6 @@ bool blink::GeometryTest::ApproximatelyEqual(float a, float b, float testEpsilon |
return ::testing::AssertionSuccess(); |
} |
+ |
+} // namespace GeometryTest |
+} // namespace blink |