| Index: base/mac/scoped_nsobject_unittest.mm
|
| diff --git a/base/mac/scoped_nsobject_unittest.mm b/base/mac/scoped_nsobject_unittest.mm
|
| index cefb5fe19fbb29ac1f0a91667497b13f353a3fe4..5694e6862f607c32c3918315ad93953df437aa42 100644
|
| --- a/base/mac/scoped_nsobject_unittest.mm
|
| +++ b/base/mac/scoped_nsobject_unittest.mm
|
| @@ -32,7 +32,10 @@ TEST(ScopedNSObjectTest, ScopedNSObject) {
|
| base::scoped_nsobject<NSObject> p3 = p1;
|
| ASSERT_EQ(p1.get(), p3.get());
|
| ASSERT_EQ(2u, [p1 retainCount]);
|
| - p3 = p1;
|
| + {
|
| + base::mac::ScopedNSAutoreleasePool pool;
|
| + p3 = p1;
|
| + }
|
| ASSERT_EQ(p1.get(), p3.get());
|
| ASSERT_EQ(2u, [p1 retainCount]);
|
| }
|
|
|