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

Side by Side Diff: third_party/ocmock/OCMock/OCMNotificationPoster.m

Issue 9240023: Roll OCMock r77:7f521db0628086185123666b0979e48d6ecaeac1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 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
OLDNEW
1 //------------------------------------------------------------------------------ --------- 1 //------------------------------------------------------------------------------ ---------
2 // $Id: OCMNotificationPoster.m 50 2009-07-16 06:48:19Z erik $ 2 // $Id$
3 // Copyright (c) 2009 by Mulle Kybernetik. See License file for details. 3 // Copyright (c) 2009 by Mulle Kybernetik. See License file for details.
4 //------------------------------------------------------------------------------ --------- 4 //------------------------------------------------------------------------------ ---------
5 5
6 #import "OCMNotificationPoster.h" 6 #import "OCMNotificationPoster.h"
7 7
8 8
9 @implementation OCMNotificationPoster 9 @implementation OCMNotificationPoster
10 10
11 - (id)initWithNotification:(id)aNotification 11 - (id)initWithNotification:(id)aNotification
12 { 12 {
13 » [super init]; 13 » self = [super init];
14 notification = [aNotification retain]; 14 notification = [aNotification retain];
15 return self; 15 return self;
16 } 16 }
17 17
18 - (void)dealloc 18 - (void)dealloc
19 { 19 {
20 [notification release]; 20 [notification release];
21 [super dealloc]; 21 [super dealloc];
22 } 22 }
23 23
24 - (void)handleInvocation:(NSInvocation *)anInvocation 24 - (void)handleInvocation:(NSInvocation *)anInvocation
25 { 25 {
26 [[NSNotificationCenter defaultCenter] postNotification:notification]; 26 [[NSNotificationCenter defaultCenter] postNotification:notification];
27 } 27 }
28 28
29 29
30 @end 30 @end
OLDNEW
« no previous file with comments | « third_party/ocmock/OCMock/OCMNotificationPoster.h ('k') | third_party/ocmock/OCMock/OCMObserverRecorder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698