Skip to content

Commit b279959

Browse files
[pigeon] Update auto-formatting (#1251)
New tests were added to Pigeon between the clang-format change PR running tests and landing, so `format` broke the tree in post-submit due to the new file not having the updated formatting. Fixes the tree.
1 parent 017d64d commit b279959

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

packages/pigeon/platform_tests/ios_unit_tests/ios/RunnerTests/NullFieldsTest.m

+27-27
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99

1010
///////////////////////////////////////////////////////////////////////////////////////////
1111
@interface NullFieldsSearchRequest ()
12-
+ (NullFieldsSearchRequest*)fromMap:(NSDictionary*)dict;
13-
- (NSDictionary*)toMap;
12+
+ (NullFieldsSearchRequest *)fromMap:(NSDictionary *)dict;
13+
- (NSDictionary *)toMap;
1414
@end
1515

1616
///////////////////////////////////////////////////////////////////////////////////////////
1717
@interface NullFieldsSearchReply ()
18-
+ (NullFieldsSearchReply*)fromMap:(NSDictionary*)dict;
19-
- (NSDictionary*)toMap;
18+
+ (NullFieldsSearchReply *)fromMap:(NSDictionary *)dict;
19+
- (NSDictionary *)toMap;
2020
@end
2121

2222
///////////////////////////////////////////////////////////////////////////////////////////
@@ -27,16 +27,16 @@ @interface NullFieldsTest : XCTestCase
2727
@implementation NullFieldsTest
2828

2929
- (void)testMakeWithValues {
30-
NullFieldsSearchRequest* request = [NullFieldsSearchRequest makeWithQuery:@"hello"];
30+
NullFieldsSearchRequest *request = [NullFieldsSearchRequest makeWithQuery:@"hello"];
3131

32-
NullFieldsSearchReply* reply =
32+
NullFieldsSearchReply *reply =
3333
[NullFieldsSearchReply makeWithResult:@"result"
3434
error:@"error"
3535
indices:@[ @1, @2, @3 ]
3636
request:request
3737
type:NullFieldsSearchReplyTypeSuccess];
3838

39-
NSArray* indices = @[ @1, @2, @3 ];
39+
NSArray *indices = @[ @1, @2, @3 ];
4040
XCTAssertEqualObjects(@"result", reply.result);
4141
XCTAssertEqualObjects(@"error", reply.error);
4242
XCTAssertEqualObjects(indices, reply.indices);
@@ -45,12 +45,12 @@ - (void)testMakeWithValues {
4545
}
4646

4747
- (void)testMakeRequestWithNulls {
48-
NullFieldsSearchRequest* request = [NullFieldsSearchRequest makeWithQuery:nil];
48+
NullFieldsSearchRequest *request = [NullFieldsSearchRequest makeWithQuery:nil];
4949
XCTAssertNil(request.query);
5050
}
5151

5252
- (void)testMakeReplyWithNulls {
53-
NullFieldsSearchReply* reply =
53+
NullFieldsSearchReply *reply =
5454
[NullFieldsSearchReply makeWithResult:nil
5555
error:nil
5656
indices:nil
@@ -64,23 +64,23 @@ - (void)testMakeReplyWithNulls {
6464
}
6565

6666
- (void)testRequestFromMapWithValues {
67-
NSDictionary* map = @{
67+
NSDictionary *map = @{
6868
@"query" : @"hello",
6969
};
70-
NullFieldsSearchRequest* request = [NullFieldsSearchRequest fromMap:map];
70+
NullFieldsSearchRequest *request = [NullFieldsSearchRequest fromMap:map];
7171
XCTAssertEqualObjects(@"hello", request.query);
7272
}
7373

7474
- (void)testRequestFromMapWithNulls {
75-
NSDictionary* map = @{
75+
NSDictionary *map = @{
7676
@"query" : [NSNull null],
7777
};
78-
NullFieldsSearchRequest* request = [NullFieldsSearchRequest fromMap:map];
78+
NullFieldsSearchRequest *request = [NullFieldsSearchRequest fromMap:map];
7979
XCTAssertNil(request.query);
8080
}
8181

8282
- (void)testReplyFromMapWithValues {
83-
NSDictionary* map = @{
83+
NSDictionary *map = @{
8484
@"result" : @"result",
8585
@"error" : @"error",
8686
@"indices" : @[ @1, @2, @3 ],
@@ -90,8 +90,8 @@ - (void)testReplyFromMapWithValues {
9090
@"type" : @0,
9191
};
9292

93-
NSArray* indices = @[ @1, @2, @3 ];
94-
NullFieldsSearchReply* reply = [NullFieldsSearchReply fromMap:map];
93+
NSArray *indices = @[ @1, @2, @3 ];
94+
NullFieldsSearchReply *reply = [NullFieldsSearchReply fromMap:map];
9595
XCTAssertEqualObjects(@"result", reply.result);
9696
XCTAssertEqualObjects(@"error", reply.error);
9797
XCTAssertEqualObjects(indices, reply.indices);
@@ -100,14 +100,14 @@ - (void)testReplyFromMapWithValues {
100100
}
101101

102102
- (void)testReplyFromMapWithNulls {
103-
NSDictionary* map = @{
103+
NSDictionary *map = @{
104104
@"result" : [NSNull null],
105105
@"error" : [NSNull null],
106106
@"indices" : [NSNull null],
107107
@"request" : [NSNull null],
108108
@"type" : [NSNull null],
109109
};
110-
NullFieldsSearchReply* reply = [NullFieldsSearchReply fromMap:map];
110+
NullFieldsSearchReply *reply = [NullFieldsSearchReply fromMap:map];
111111
XCTAssertNil(reply.result);
112112
XCTAssertNil(reply.error);
113113
XCTAssertNil(reply.indices);
@@ -116,26 +116,26 @@ - (void)testReplyFromMapWithNulls {
116116
}
117117

118118
- (void)testRequestToMapWithValuess {
119-
NullFieldsSearchRequest* request = [NullFieldsSearchRequest makeWithQuery:@"hello"];
120-
NSDictionary* dict = [request toMap];
119+
NullFieldsSearchRequest *request = [NullFieldsSearchRequest makeWithQuery:@"hello"];
120+
NSDictionary *dict = [request toMap];
121121
XCTAssertEqual(@"hello", dict[@"query"]);
122122
}
123123

124124
- (void)testRequestToMapWithNulls {
125-
NullFieldsSearchRequest* request = [NullFieldsSearchRequest makeWithQuery:nil];
126-
NSDictionary* dict = [request toMap];
125+
NullFieldsSearchRequest *request = [NullFieldsSearchRequest makeWithQuery:nil];
126+
NSDictionary *dict = [request toMap];
127127
XCTAssertEqual([NSNull null], dict[@"query"]);
128128
}
129129

130130
- (void)testReplyToMapWithValuess {
131-
NullFieldsSearchReply* reply =
131+
NullFieldsSearchReply *reply =
132132
[NullFieldsSearchReply makeWithResult:@"result"
133133
error:@"error"
134134
indices:@[ @1, @2, @3 ]
135135
request:[NullFieldsSearchRequest makeWithQuery:@"hello"]
136136
type:NullFieldsSearchReplyTypeSuccess];
137-
NSDictionary* dict = [reply toMap];
138-
NSArray* indices = @[ @1, @2, @3 ];
137+
NSDictionary *dict = [reply toMap];
138+
NSArray *indices = @[ @1, @2, @3 ];
139139
XCTAssertEqualObjects(@"result", dict[@"result"]);
140140
XCTAssertEqualObjects(@"error", dict[@"error"]);
141141
XCTAssertEqualObjects(indices, dict[@"indices"]);
@@ -144,13 +144,13 @@ - (void)testReplyToMapWithValuess {
144144
}
145145

146146
- (void)testReplyToMapWithNulls {
147-
NullFieldsSearchReply* reply =
147+
NullFieldsSearchReply *reply =
148148
[NullFieldsSearchReply makeWithResult:nil
149149
error:nil
150150
indices:nil
151151
request:nil
152152
type:NullFieldsSearchReplyTypeSuccess];
153-
NSDictionary* dict = [reply toMap];
153+
NSDictionary *dict = [reply toMap];
154154
XCTAssertEqual([NSNull null], dict[@"result"]);
155155
XCTAssertEqual([NSNull null], dict[@"error"]);
156156
XCTAssertEqual([NSNull null], dict[@"indices"]);

0 commit comments

Comments
 (0)