@@ -40,8 +40,7 @@ - (void)testSendProtoReport {
40
40
41
41
FIRCLSReportAdapter *adapter =
42
42
[[FIRCLSReportAdapter alloc ] initWithPath: minCrash
43
- googleAppId: @" 1:17586535263:ios:83778f4dc7e8a26ef794ea"
44
- orgId: @" 5bec84f69ea6961d03000dc5" ];
43
+ googleAppId: @" 1:17586535263:ios:83778f4dc7e8a26ef794ea" ];
45
44
46
45
GDTCORTransport *transport = [[GDTCORTransport alloc ] initWithMappingID: @" 1206"
47
46
transformers: nil
@@ -59,8 +58,7 @@ - (void)testProtoOutput {
59
58
60
59
FIRCLSReportAdapter *adapter =
61
60
[[FIRCLSReportAdapter alloc ] initWithPath: minCrash
62
- googleAppId: @" 1:17586535263:ios:83778f4dc7e8a26ef794ea"
63
- orgId: @" 5bec84f69ea6961d03000dc5" ];
61
+ googleAppId: @" 1:17586535263:ios:83778f4dc7e8a26ef794ea" ];
64
62
65
63
NSData *data = adapter.transportBytes ;
66
64
@@ -81,8 +79,7 @@ - (void)testProtoOutput {
81
79
// / Verify various invalid input cases.
82
80
- (void )testInvalidRecordCases {
83
81
id adapter __unused = [[FIRCLSReportAdapter alloc ] initWithPath: @" nonExistentPath"
84
- googleAppId: @" appID"
85
- orgId: @" orgID" ];
82
+ googleAppId: @" appID" ];
86
83
87
84
id application __unused = [[FIRCLSRecordApplication alloc ] initWithDict: nil ];
88
85
id host __unused = [[FIRCLSRecordHost alloc ] initWithDict: nil ];
@@ -125,7 +122,6 @@ - (void)testReportProto {
125
122
equalToString: adapter.application.display_version]);
126
123
127
124
// Files payload
128
- XCTAssertTrue ([self isPBData: report.apple_payload.org_id equalToString: @" orgID" ]);
129
125
XCTAssertEqual (report.apple_payload .files_count , 10 );
130
126
131
127
NSArray <NSString *> *clsRecords = adapter.clsRecordFilePaths ;
@@ -144,24 +140,21 @@ + (FIRCLSReportAdapter *)adapterForAllCrashes {
144
140
return [[FIRCLSReportAdapter alloc ]
145
141
initWithPath: [[FIRCLSReportAdapterTests resourcePath ]
146
142
stringByAppendingPathComponent: @" ios_all_files_crash" ]
147
- googleAppId: @" appID"
148
- orgId: @" orgID" ];
143
+ googleAppId: @" appID" ];
149
144
}
150
145
151
146
+ (FIRCLSReportAdapter *)adapterForCorruptMetadata {
152
147
return [[FIRCLSReportAdapter alloc ]
153
148
initWithPath: [[FIRCLSReportAdapterTests resourcePath ]
154
149
stringByAppendingPathComponent: @" corrupt_metadata" ]
155
- googleAppId: @" appID"
156
- orgId: @" orgID" ];
150
+ googleAppId: @" appID" ];
157
151
}
158
152
159
153
+ (FIRCLSReportAdapter *)adapterForValidMetadata {
160
154
return [[FIRCLSReportAdapter alloc ]
161
155
initWithPath: [[FIRCLSReportAdapterTests resourcePath ]
162
156
stringByAppendingPathComponent: @" valid_metadata" ]
163
- googleAppId: @" appID"
164
- orgId: @" orgID" ];
157
+ googleAppId: @" appID" ];
165
158
}
166
159
167
160
+ (NSString *)resourcePath {
0 commit comments