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

Unified Diff: testing/platform_test.h

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/gtest.gyp ('k') | testing/platform_test_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing/platform_test.h
===================================================================
--- testing/platform_test.h (revision 23853)
+++ testing/platform_test.h (working copy)
@@ -15,14 +15,14 @@
#endif
// The purpose of this class us to provide a hook for platform-specific
-// SetUp and TearDown across unit tests. For example, on the Mac, it
-// creates and releases an outer AutoreleasePool for each test. For now, it's
-// only implemented on the Mac. To enable this for another platform, just
-// adjust the #ifdefs and add a platform_test_<platform>.cc implementation file.
+// operations across unit tests. For example, on the Mac, it creates and
+// releases an outer NSAutoreleasePool for each test case. For now, it's only
+// implemented on the Mac. To enable this for another platform, just adjust
+// the #ifdefs and add a platform_test_<platform>.cc implementation file.
class PlatformTest : public testing::Test {
protected:
- virtual void SetUp();
- virtual void TearDown();
+ PlatformTest();
+ virtual ~PlatformTest();
private:
NSAutoreleasePool* pool_;
« no previous file with comments | « testing/gtest.gyp ('k') | testing/platform_test_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698