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

Unified Diff: ui/gfx/test/ui_cocoa_test_helper.h

Issue 1155623002: Added CGFloat comparison functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 | « testing/gtest_mac.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/test/ui_cocoa_test_helper.h
diff --git a/ui/gfx/test/ui_cocoa_test_helper.h b/ui/gfx/test/ui_cocoa_test_helper.h
index da00de15a06b69b7878fb6af2d362345da0ba0e3..d597ac1e73566d3aaca056036290d7475db4301b 100644
--- a/ui/gfx/test/ui_cocoa_test_helper.h
+++ b/ui/gfx/test/ui_cocoa_test_helper.h
@@ -11,6 +11,7 @@
#include "base/compiler_specific.h"
#import "base/mac/scoped_nsautorelease_pool.h"
+#import "testing/gtest_mac.h"
danakj 2015/05/28 20:59:40 This is weird, no? Why not just include this at th
kkhorimoto 2015/05/30 00:29:49 Done.
#include "testing/platform_test.h"
// Background windows normally will not display things such as focus
@@ -130,11 +131,6 @@ class CocoaTest : public PlatformTest {
(actual >= (expected - CGFLOAT_EPSILON) && \
actual <= (expected + CGFLOAT_EPSILON))
-// A test support macro which ascertains if two CGFloats are equal.
-#define EXPECT_CGFLOAT_EQ(expected, actual) \
- EXPECT_TRUE(CGFLOAT_EQ(expected, actual)) << \
- expected << " != " << actual
-
// A test support macro which compares two NSRects for equality taking
// the float epsilon into consideration.
#define EXPECT_NSRECT_EQ(expected, actual) \
« no previous file with comments | « testing/gtest_mac.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698