diff options
Diffstat (limited to 'chromium/base/mac/objc_release_properties_unittest.mm')
-rw-r--r-- | chromium/base/mac/objc_release_properties_unittest.mm | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/chromium/base/mac/objc_release_properties_unittest.mm b/chromium/base/mac/objc_release_properties_unittest.mm index 4b51e42b2ec..6804669d15c 100644 --- a/chromium/base/mac/objc_release_properties_unittest.mm +++ b/chromium/base/mac/objc_release_properties_unittest.mm @@ -5,7 +5,6 @@ #include "base/mac/objc_release_properties.h" #include "base/stl_util.h" -#import "base/mac/scoped_nsautorelease_pool.h" #include "testing/gtest/include/gtest/gtest.h" #import <objc/runtime.h> @@ -268,9 +267,7 @@ TEST(ObjCReleasePropertiesTest, SesameStreet) { // Make sure that worked before things get more involved. EXPECT_EQ(3, ah_ah_ah); - { - base::mac::ScopedNSAutoreleasePool pool; - + @autoreleasepool { test_object.baseCvcRetain = [CountVonCount countVonCount]; test_object.baseCvcCopy = [CountVonCount countVonCount]; test_object.baseCvcAssign = baseAssign; @@ -324,9 +321,7 @@ TEST(ObjCReleasePropertiesTest, SesameStreet) { // readonly. EXPECT_EQ(6, ah_ah_ah); - { - base::mac::ScopedNSAutoreleasePool pool; - + @autoreleasepool { // Put things back to how they were. test_object.baseCvcRetain = [CountVonCount countVonCount]; test_object.baseCvcCopy = [CountVonCount countVonCount]; |