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

Unified Diff: testing/platform_test_mac.mm

Issue 174171: Move NSAutoreleasePool management into the PlatformTest constructor and... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 4 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/platform_test.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing/platform_test_mac.mm
===================================================================
--- testing/platform_test_mac.mm (revision 23853)
+++ testing/platform_test_mac.mm (working copy)
@@ -6,10 +6,10 @@
#import <Foundation/Foundation.h>
-void PlatformTest::SetUp() {
- pool_ = [[NSAutoreleasePool alloc] init];
+PlatformTest::PlatformTest()
+ : pool_([[NSAutoreleasePool alloc] init]) {
}
-void PlatformTest::TearDown() {
- [pool_ drain];
+PlatformTest::~PlatformTest() {
+ [pool_ release];
}
« no previous file with comments | « testing/platform_test.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698