| Index: ui/base/test/ui_cocoa_test_helper.h
|
| diff --git a/ui/base/test/ui_cocoa_test_helper.h b/ui/base/test/ui_cocoa_test_helper.h
|
| index ff24a2ffc1d4f7d5de7b847a57ee876307146d83..79e37e23d9f8b7cdd8bbaca6a2c12875311b1861 100644
|
| --- a/ui/base/test/ui_cocoa_test_helper.h
|
| +++ b/ui/base/test/ui_cocoa_test_helper.h
|
| @@ -106,15 +106,15 @@ class CocoaTest : public PlatformTest {
|
| // displaying the view to make sure it won't crash, as well as removing it
|
| // from a window. All tests that work with NSView subclasses and/or
|
| // NSViewController subclasses should use it.
|
| -#define TEST_VIEW(test_fixture, test_view) \
|
| +#define TEST_VIEW(test_fixture, test_view) \
|
| TEST_F(test_fixture, test_fixture##_TestViewMacroAddRemove) { \
|
| - scoped_nsobject<NSView> view([test_view retain]); \
|
| - EXPECT_EQ([test_window() contentView], [view superview]); \
|
| - [view removeFromSuperview]; \
|
| - EXPECT_FALSE([view superview]); \
|
| - } \
|
| - TEST_F(test_fixture, test_fixture##_TestViewMacroDisplay) { \
|
| - [test_view display]; \
|
| + base::scoped_nsobject<NSView> view([test_view retain]); \
|
| + EXPECT_EQ([test_window() contentView], [view superview]); \
|
| + [view removeFromSuperview]; \
|
| + EXPECT_FALSE([view superview]); \
|
| + } \
|
| + TEST_F(test_fixture, test_fixture##_TestViewMacroDisplay) { \
|
| + [test_view display]; \
|
| }
|
|
|
| // A macro which determines the proper float epsilon for a CGFloat.
|
|
|