diff options
Diffstat (limited to 'ui/base/test/ui_cocoa_test_helper.h')
-rw-r--r-- | ui/base/test/ui_cocoa_test_helper.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/ui/base/test/ui_cocoa_test_helper.h b/ui/base/test/ui_cocoa_test_helper.h index ff24a2f..79e37e2 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. |