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

Side by Side Diff: base/mac/objc_property_releaser_unittest.mm

Issue 10825231: A nonsense change to test that the commit queue doesn't update the copyright notice's year (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tossed salad Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | build/whitespace_file.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import <Foundation/Foundation.h> 5 #import <Foundation/Foundation.h>
6 6
7 #import "base/mac/objc_property_releaser.h" 7 #import "base/mac/objc_property_releaser.h"
8 #import "base/mac/scoped_nsautorelease_pool.h" 8 #import "base/mac/scoped_nsautorelease_pool.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 test_object.baseCvcCustom = nil; 292 test_object.baseCvcCustom = nil;
293 test_object.derivedCvcRetain = nil; 293 test_object.derivedCvcRetain = nil;
294 test_object.derivedCvcCopy = nil; 294 test_object.derivedCvcCopy = nil;
295 test_object.derivedCvcAssign = nil; 295 test_object.derivedCvcAssign = nil;
296 test_object.derivedCvcCustom = nil; 296 test_object.derivedCvcCustom = nil;
297 test_object.protoCvcRetain = nil; 297 test_object.protoCvcRetain = nil;
298 test_object.protoCvcCopy = nil; 298 test_object.protoCvcCopy = nil;
299 test_object.protoCvcAssign = nil; 299 test_object.protoCvcAssign = nil;
300 test_object.protoCvcCustom = nil; 300 test_object.protoCvcCustom = nil;
301 301
302 // The CountVonCounts marked retain and copy should have been deallocated. 302 // The CountVonCounts marked "retain" and "copy" should have been
303 // Those marked assign should not have been. The only ones that should exist 303 // deallocated. Those marked assign should not have been. The only ones that
304 // now are the ones marked "assign" and the ones held in non-property 304 // should exist now are the ones marked "assign" and the ones held in
305 // instance variables. 305 // non-property instance variables.
306 EXPECT_EQ(5, ah_ah_ah); 306 EXPECT_EQ(5, ah_ah_ah);
307 307
308 { 308 {
309 base::mac::ScopedNSAutoreleasePool pool; 309 base::mac::ScopedNSAutoreleasePool pool;
310 310
311 // Put things back to how they were. 311 // Put things back to how they were.
312 test_object.baseCvcRetain = [CountVonCount countVonCount]; 312 test_object.baseCvcRetain = [CountVonCount countVonCount];
313 test_object.baseCvcCopy = [CountVonCount countVonCount]; 313 test_object.baseCvcCopy = [CountVonCount countVonCount];
314 test_object.baseCvcAssign = baseAssign; 314 test_object.baseCvcAssign = baseAssign;
315 test_object.baseCvcCustom = [CountVonCount countVonCount]; 315 test_object.baseCvcCustom = [CountVonCount countVonCount];
(...skipping 25 matching lines...) Expand all
341 341
342 [baseAssign release]; 342 [baseAssign release];
343 [derivedAssign release]; 343 [derivedAssign release];
344 [protoAssign release]; 344 [protoAssign release];
345 345
346 // Zero! Zero counts! Ah, ah, ah. 346 // Zero! Zero counts! Ah, ah, ah.
347 EXPECT_EQ(0, ah_ah_ah); 347 EXPECT_EQ(0, ah_ah_ah);
348 } 348 }
349 349
350 } // namespace 350 } // namespace
OLDNEW
« no previous file with comments | « no previous file | build/whitespace_file.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698