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

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

Issue 17593006: mac: Update clients of scoped_nsobject.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: iwyu, scoped_nsprotocol Created 7 years, 6 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
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.

Powered by Google App Engine
This is Rietveld 408576698