@@ -31,6 +31,11 @@ const List<int> _kTestPngBytes = <int>[
31
31
78 , 68 , 174 , 66 , 96 , 130 ,
32
32
];
33
33
34
+ // We intentionally use an ABI that is unlikely to be the one anyone editing this code
35
+ // would assume, so that if there any any assumptions made about the ABI, they will
36
+ // be more likely to fail the tests.
37
+ const Abi testAbi = Abi .fuchsiaRiscv64;
38
+
34
39
void main () {
35
40
group ('SkiaGoldClient' , () {
36
41
test ('web HTML test' , () async {
@@ -55,6 +60,7 @@ void main() {
55
60
process: process,
56
61
platform: platform,
57
62
httpClient: fakeHttpClient,
63
+ abi: testAbi,
58
64
log: (String message) => fail ('skia gold client printed unexpected output: "$message "' ),
59
65
);
60
66
@@ -105,6 +111,7 @@ void main() {
105
111
process: process,
106
112
platform: platform,
107
113
httpClient: fakeHttpClient,
114
+ abi: testAbi,
108
115
log: (String message) => fail ('skia gold client printed unexpected output: "$message "' ),
109
116
);
110
117
@@ -147,6 +154,7 @@ void main() {
147
154
process: process,
148
155
platform: platform,
149
156
httpClient: fakeHttpClient,
157
+ abi: testAbi,
150
158
log: (String message) => fail ('skia gold client printed unexpected output: "$message "' ),
151
159
);
152
160
final File authFile = fs.file ('/workDirectory/temp/auth_opt.json' )
@@ -175,6 +183,7 @@ void main() {
175
183
process: process,
176
184
platform: platform,
177
185
httpClient: fakeHttpClient,
186
+ abi: testAbi,
178
187
log: (String message) => fail ('skia gold client printed unexpected output: "$message "' ),
179
188
);
180
189
final File authFile = fs.file ('/workDirectory/temp/auth_opt.json' )
@@ -207,6 +216,7 @@ void main() {
207
216
process: process,
208
217
platform: platform,
209
218
httpClient: fakeHttpClient,
219
+ abi: testAbi,
210
220
log: (String message) => fail ('skia gold client printed unexpected output: "$message "' ),
211
221
);
212
222
@@ -238,6 +248,7 @@ void main() {
238
248
process: process,
239
249
platform: platform,
240
250
httpClient: fakeHttpClient,
251
+ abi: testAbi,
241
252
log: (String message) => fail ('skia gold client printed unexpected output: "$message "' ),
242
253
);
243
254
@@ -288,6 +299,7 @@ void main() {
288
299
process: process,
289
300
platform: platform,
290
301
httpClient: fakeHttpClient,
302
+ abi: testAbi,
291
303
log: (String message) => fail ('skia gold client printed unexpected output: "$message "' ),
292
304
);
293
305
@@ -346,6 +358,7 @@ void main() {
346
358
process: process,
347
359
platform: platform,
348
360
httpClient: fakeHttpClient,
361
+ abi: testAbi,
349
362
log: (String message) => fail ('skia gold client printed unexpected output: "$message "' ),
350
363
);
351
364
@@ -408,6 +421,7 @@ void main() {
408
421
process: process,
409
422
platform: platform,
410
423
httpClient: fakeHttpClient,
424
+ abi: testAbi,
411
425
log: (String message) => fail ('skia gold client printed unexpected output: "$message "' ),
412
426
);
413
427
const RunInvocation goldctlInvocation = RunInvocation (
@@ -453,6 +467,7 @@ void main() {
453
467
process: process,
454
468
platform: platform,
455
469
httpClient: fakeHttpClient,
470
+ abi: testAbi,
456
471
log: (String message) => fail ('skia gold client printed unexpected output: "$message "' ),
457
472
);
458
473
@@ -587,6 +602,7 @@ void main() {
587
602
process: process,
588
603
platform: platform,
589
604
httpClient: fakeHttpClient,
605
+ abi: testAbi,
590
606
log: (String message) => fail ('skia gold client printed unexpected output: "$message "' ),
591
607
);
592
608
const RunInvocation goldctlInvocation = RunInvocation (
@@ -636,6 +652,7 @@ void main() {
636
652
process: process,
637
653
platform: platform,
638
654
httpClient: fakeHttpClient,
655
+ abi: testAbi,
639
656
log: (String message) => fail ('skia gold client printed unexpected output: "$message "' ),
640
657
);
641
658
const RunInvocation goldctlInvocation = RunInvocation (
@@ -681,6 +698,7 @@ void main() {
681
698
process: process,
682
699
platform: platform,
683
700
httpClient: fakeHttpClient,
701
+ abi: testAbi,
684
702
log: (String message) => fail ('skia gold client printed unexpected output: "$message "' ),
685
703
);
686
704
final Uri imageUrl = Uri .parse (
@@ -860,6 +878,7 @@ void main() {
860
878
fs: fs,
861
879
process: FakeProcessManager (),
862
880
httpClient: FakeHttpClient (),
881
+ abi: testAbi,
863
882
);
864
883
expect (fakeSkiaClient.initCalls, 0 );
865
884
});
@@ -948,6 +967,7 @@ void main() {
948
967
fs: fs,
949
968
process: FakeProcessManager (),
950
969
httpClient: FakeHttpClient (),
970
+ abi: testAbi,
951
971
);
952
972
expect (fakeSkiaClient.tryInitCalls, 0 );
953
973
});
@@ -1053,6 +1073,7 @@ void main() {
1053
1073
fs: fs,
1054
1074
process: FakeProcessManager (),
1055
1075
httpClient: FakeHttpClient (),
1076
+ abi: testAbi,
1056
1077
);
1057
1078
expect (comparator1.runtimeType, FlutterSkippingFileComparator );
1058
1079
@@ -1066,6 +1087,7 @@ void main() {
1066
1087
fs: fs,
1067
1088
process: FakeProcessManager (),
1068
1089
httpClient: FakeHttpClient (),
1090
+ abi: testAbi,
1069
1091
);
1070
1092
expect (comparator2.runtimeType, FlutterSkippingFileComparator );
1071
1093
@@ -1079,6 +1101,7 @@ void main() {
1079
1101
fs: fs,
1080
1102
process: FakeProcessManager (),
1081
1103
httpClient: FakeHttpClient (),
1104
+ abi: testAbi,
1082
1105
);
1083
1106
expect (comparator3.runtimeType, FlutterSkippingFileComparator );
1084
1107
0 commit comments