Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2056)

Unified Diff: Source/platform/geometry/GeometryTestHelpers.cpp

Issue 1110913002: Removing blink::prefix (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/platform/geometry/GeometryTestHelpers.h ('k') | Source/platform/heap/Handle.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/platform/geometry/GeometryTestHelpers.h ('k') | Source/platform/heap/Handle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698