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

Unified Diff: ui/gfx/animation/tween_unittest.cc

Issue 1061733002: Remove windows/mac/ios specific code from //ui (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: fix default try set Created 5 years, 9 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 | « ui/gfx/animation/tween.cc ('k') | ui/gfx/codec/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/animation/tween_unittest.cc
diff --git a/ui/gfx/animation/tween_unittest.cc b/ui/gfx/animation/tween_unittest.cc
index f71a77dccbdd7bf480dce2fe8bbc318c16d71a1c..187d9497ff7868cfb2bd44c46053746b56991fa7 100644
--- a/ui/gfx/animation/tween_unittest.cc
+++ b/ui/gfx/animation/tween_unittest.cc
@@ -6,10 +6,6 @@
#include <math.h>
-#if defined(OS_WIN)
-#include <float.h>
-#endif
-
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/test/gfx_util.h"
@@ -17,14 +13,10 @@ namespace gfx {
namespace {
double next_double(double d) {
-#if defined(OS_WIN)
- return _nextafter(d, d + 1);
-#else
// Step two units of least precision towards positive infinity. On some 32
// bit x86 compilers a single step was not enough due to loss of precision in
// optimized code.
return nextafter(nextafter(d, d + 1), d + 1);
-#endif
}
// Validates that the same interpolations are made as in Blink.
« no previous file with comments | « ui/gfx/animation/tween.cc ('k') | ui/gfx/codec/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698