summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorrsesek <rsesek@chromium.org>2016-01-05 10:08:16 -0800
committerCommit bot <commit-bot@chromium.org>2016-01-05 18:09:01 +0000
commit06f11a1252cf7019186b64799d3a33630b12f221 (patch)
tree5ce108c888394f8777797aac50b93bf587f1d7e2 /base
parent3b3d6c373f8690d9a8724417b7991ee320f52985 (diff)
downloadchromium_src-06f11a1252cf7019186b64799d3a33630b12f221.zip
chromium_src-06f11a1252cf7019186b64799d3a33630b12f221.tar.gz
chromium_src-06f11a1252cf7019186b64799d3a33630b12f221.tar.bz2
Add a comment for the #if-0 block in scoped_nsobject_unittest.mm.
Requested after-landing https://codereview.chromium.org/1551943002/. R=thakis@chromium.org Review URL: https://codereview.chromium.org/1563463002 Cr-Commit-Position: refs/heads/master@{#367573}
Diffstat (limited to 'base')
-rw-r--r--base/mac/scoped_nsobject_unittest.mm2
1 files changed, 2 insertions, 0 deletions
diff --git a/base/mac/scoped_nsobject_unittest.mm b/base/mac/scoped_nsobject_unittest.mm
index c838217..8b0b97d 100644
--- a/base/mac/scoped_nsobject_unittest.mm
+++ b/base/mac/scoped_nsobject_unittest.mm
@@ -52,6 +52,8 @@ TEST(ScopedNSObjectTest, ScopedNSObject) {
ASSERT_EQ(2u, [p1 retainCount]);
}
+// Instantiating scoped_nsobject<> with T=NSAutoreleasePool should trip a
+// static_assert.
#if 0
TEST(ScopedNSObjectTest, FailToCreateScopedNSObjectAutoreleasePool) {
base::scoped_nsobject<NSAutoreleasePool> pool;