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

Side by Side Diff: third_party/protobuf/objectivec/Tests/iOSTestHarness/AppDelegate.m

Issue 1842653006: Update //third_party/protobuf to version 3. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 4 years, 8 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
OLDNEW
(Empty)
1 #import <UIKit/UIKit.h>
2
3 @interface AppDelegate : UIResponder <UIApplicationDelegate>
4 @property (strong, nonatomic) UIWindow *window;
5 @end
6
7 @implementation AppDelegate
8
9 @synthesize window;
10
11 - (BOOL)application:(UIApplication *)application
12 didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
13 #pragma unused (application, launchOptions)
14
15 self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
16 self.window.backgroundColor = [UIColor whiteColor];
17 [self.window makeKeyAndVisible];
18 self.window.rootViewController = [[UIViewController alloc] init];
19
20 UILabel *label =
21 [[UILabel alloc] initWithFrame:CGRectMake(0, 200, CGRectGetWidth(self.wind ow.frame), 40)];
22 label.text = @"Protocol Buffer Test Harness";
23 label.textAlignment = NSTextAlignmentCenter;
24 [self.window addSubview:label];
25
26 return YES;
27 }
28
29 @end
30
31 int main(int argc, char * argv[]) {
32 @autoreleasepool {
33 return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate cla ss]));
34 }
35 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698