@@ -18,7 +18,7 @@ import FirebaseCore
18
18
@testable import FirebaseInstallations
19
19
@testable import FirebaseAppDistributionInternal
20
20
21
- class AppDistributionApiServiceTests : XCTestCase {
21
+ class ApiServiceTests : XCTestCase {
22
22
override class func setUp( ) {
23
23
let options = FirebaseOptions (
24
24
googleAppID: " 0:0000000000000:ios:0000000000000000 " ,
@@ -38,7 +38,7 @@ class AppDistributionApiServiceTests: XCTestCase {
38
38
39
39
let expectation = XCTestExpectation ( description: " Generate auth token succeeds " )
40
40
41
- AppDistributionApiService . generateAuthToken (
41
+ ApiService . generateAuthToken (
42
42
installations: installations,
43
43
completion: { identifier, authTokenResult, error in
44
44
XCTAssertNotNil ( identifier)
@@ -56,7 +56,7 @@ class AppDistributionApiServiceTests: XCTestCase {
56
56
let expectation =
57
57
XCTestExpectation ( description: " Generate auth token fails to generate auth token. " )
58
58
59
- AppDistributionApiService . generateAuthToken (
59
+ ApiService . generateAuthToken (
60
60
installations: installations,
61
61
completion: { identifier, authTokenResult, error in
62
62
let nserror = error as? NSError
@@ -75,7 +75,7 @@ class AppDistributionApiServiceTests: XCTestCase {
75
75
let installations = FakeInstallations ( testCase: . installationIDFailure)
76
76
let expectation = XCTestExpectation ( description: " Generate auth token fails to find ID. " )
77
77
78
- AppDistributionApiService . generateAuthToken (
78
+ ApiService . generateAuthToken (
79
79
installations: installations,
80
80
completion: { identifier, authTokenResult, error in
81
81
let nserror = error as? NSError
@@ -121,7 +121,7 @@ class AppDistributionApiServiceTests: XCTestCase {
121
121
122
122
let expectation = XCTestExpectation ( description: " Fetch releases succeeds with two releases. " )
123
123
124
- AppDistributionApiService . fetchReleases (
124
+ ApiService . fetchReleases (
125
125
app: app,
126
126
installations: installations,
127
127
urlSession: urlSession,
@@ -147,7 +147,7 @@ class AppDistributionApiServiceTests: XCTestCase {
147
147
148
148
let expectation = XCTestExpectation ( description: " Fetch releases succeeds with 0 releases. " )
149
149
150
- AppDistributionApiService . fetchReleases (
150
+ ApiService . fetchReleases (
151
151
app: app,
152
152
installations: installations,
153
153
urlSession: urlSession,
@@ -173,7 +173,7 @@ class AppDistributionApiServiceTests: XCTestCase {
173
173
174
174
let expectation = XCTestExpectation ( description: " Fetch releases fails " )
175
175
176
- AppDistributionApiService . fetchReleases (
176
+ ApiService . fetchReleases (
177
177
app: app,
178
178
installations: installations,
179
179
urlSession: urlSession,
@@ -196,7 +196,7 @@ class AppDistributionApiServiceTests: XCTestCase {
196
196
197
197
let expectation = XCTestExpectation ( description: " Fetch releases fails with unknown error. " )
198
198
199
- AppDistributionApiService . fetchReleases (
199
+ ApiService . fetchReleases (
200
200
app: app,
201
201
installations: installations,
202
202
urlSession: urlSession,
@@ -220,7 +220,7 @@ class AppDistributionApiServiceTests: XCTestCase {
220
220
let expectation =
221
221
XCTestExpectation ( description: " Fetch releases fails with unauthenticated error. " )
222
222
223
- AppDistributionApiService . fetchReleases (
223
+ ApiService . fetchReleases (
224
224
app: app,
225
225
installations: installations,
226
226
urlSession: urlSession,
@@ -248,7 +248,7 @@ class AppDistributionApiServiceTests: XCTestCase {
248
248
249
249
let expectation = XCTestExpectation ( description: " Find release succeeds " )
250
250
251
- AppDistributionApiService . findRelease (
251
+ ApiService . findRelease (
252
252
app: app,
253
253
installations: installations,
254
254
urlSession: urlSession,
@@ -273,7 +273,7 @@ class AppDistributionApiServiceTests: XCTestCase {
273
273
274
274
let expectation = XCTestExpectation ( description: " Find release fails " )
275
275
276
- AppDistributionApiService . findRelease (
276
+ ApiService . findRelease (
277
277
app: app,
278
278
installations: installations,
279
279
urlSession: urlSession,
@@ -297,7 +297,7 @@ class AppDistributionApiServiceTests: XCTestCase {
297
297
298
298
let expectation = XCTestExpectation ( description: " Find release fails " )
299
299
300
- AppDistributionApiService . findRelease (
300
+ ApiService . findRelease (
301
301
app: app,
302
302
installations: installations,
303
303
urlSession: urlSession,
@@ -321,7 +321,7 @@ class AppDistributionApiServiceTests: XCTestCase {
321
321
322
322
let expectation = XCTestExpectation ( description: " Find release fails " )
323
323
324
- AppDistributionApiService . findRelease (
324
+ ApiService . findRelease (
325
325
app: app,
326
326
installations: installations,
327
327
urlSession: urlSession,
@@ -348,7 +348,7 @@ class AppDistributionApiServiceTests: XCTestCase {
348
348
349
349
let expectation = XCTestExpectation ( description: " Create feedback succeeds " )
350
350
351
- AppDistributionApiService . createFeedback (
351
+ ApiService . createFeedback (
352
352
app: app,
353
353
installations: installations,
354
354
urlSession: urlSession,
@@ -374,7 +374,7 @@ class AppDistributionApiServiceTests: XCTestCase {
374
374
375
375
let expectation = XCTestExpectation ( description: " Create feedback fails " )
376
376
377
- AppDistributionApiService . createFeedback (
377
+ ApiService . createFeedback (
378
378
app: app,
379
379
installations: installations,
380
380
urlSession: urlSession,
@@ -397,7 +397,7 @@ class AppDistributionApiServiceTests: XCTestCase {
397
397
398
398
let expectation = XCTestExpectation ( description: " Create feedback fails " )
399
399
400
- AppDistributionApiService . createFeedback (
400
+ ApiService . createFeedback (
401
401
app: app,
402
402
installations: installations,
403
403
urlSession: urlSession,
@@ -422,7 +422,7 @@ class AppDistributionApiServiceTests: XCTestCase {
422
422
423
423
let expectation = XCTestExpectation ( description: " Create feedback fails " )
424
424
425
- AppDistributionApiService . createFeedback (
425
+ ApiService . createFeedback (
426
426
app: app,
427
427
installations: installations,
428
428
urlSession: urlSession,
@@ -447,7 +447,7 @@ class AppDistributionApiServiceTests: XCTestCase {
447
447
448
448
let expectation = XCTestExpectation ( description: " Upload image succeeds " )
449
449
450
- AppDistributionApiService . uploadImage (
450
+ ApiService . uploadImage (
451
451
app: app,
452
452
installations: installations,
453
453
urlSession: urlSession,
@@ -469,7 +469,7 @@ class AppDistributionApiServiceTests: XCTestCase {
469
469
470
470
let expectation = XCTestExpectation ( description: " Upload image fails " )
471
471
472
- AppDistributionApiService . uploadImage (
472
+ ApiService . uploadImage (
473
473
app: app,
474
474
installations: installations,
475
475
urlSession: urlSession,
@@ -493,7 +493,7 @@ class AppDistributionApiServiceTests: XCTestCase {
493
493
494
494
let expectation = XCTestExpectation ( description: " Upload image fails " )
495
495
496
- AppDistributionApiService . uploadImage (
496
+ ApiService . uploadImage (
497
497
app: app,
498
498
installations: installations,
499
499
urlSession: urlSession,
@@ -520,7 +520,7 @@ class AppDistributionApiServiceTests: XCTestCase {
520
520
521
521
let expectation = XCTestExpectation ( description: " Commit feedback succeeds " )
522
522
523
- AppDistributionApiService . commitFeedback (
523
+ ApiService . commitFeedback (
524
524
app: app,
525
525
installations: installations,
526
526
urlSession: urlSession,
@@ -541,7 +541,7 @@ class AppDistributionApiServiceTests: XCTestCase {
541
541
542
542
let expectation = XCTestExpectation ( description: " Commit feedback fails " )
543
543
544
- AppDistributionApiService . commitFeedback (
544
+ ApiService . commitFeedback (
545
545
app: app,
546
546
installations: installations,
547
547
urlSession: urlSession,
@@ -564,7 +564,7 @@ class AppDistributionApiServiceTests: XCTestCase {
564
564
565
565
let expectation = XCTestExpectation ( description: " Commit feedback fails " )
566
566
567
- AppDistributionApiService . commitFeedback (
567
+ ApiService . commitFeedback (
568
568
app: app,
569
569
installations: installations,
570
570
urlSession: urlSession,
0 commit comments