@@ -214,7 +214,6 @@ void main() {
214
214
215
215
group ('Snapshotter - AOT' , () {
216
216
const String kSnapshotDart = 'snapshot.dart' ;
217
- const String kSDKPath = '/path/to/sdk' ;
218
217
String skyEnginePath;
219
218
220
219
_FakeGenSnapshot genSnapshot;
@@ -244,8 +243,6 @@ void main() {
244
243
mockAndroidSdk = MockAndroidSdk ();
245
244
mockArtifacts = MockArtifacts ();
246
245
mockXcode = MockXcode ();
247
- when (mockXcode.iPhoneSdkLocation ()).thenAnswer ((_) => Future <String >.value (kSDKPath));
248
-
249
246
bufferLogger = BufferLogger ();
250
247
for (BuildMode mode in BuildMode .values) {
251
248
when (mockArtifacts.getArtifactPath (Artifact .snapshotDart,
@@ -337,19 +334,8 @@ void main() {
337
334
'main.dill' ,
338
335
]);
339
336
340
- final VerificationResult toVerifyCC = verify (xcode.cc (captureAny));
341
- expect (toVerifyCC.callCount, 1 );
342
- final List <String > ccArgs = toVerifyCC.captured.first;
343
- expect (ccArgs, contains ('-fembed-bitcode' ));
344
- expect (ccArgs, contains ('-isysroot' ));
345
- expect (ccArgs, contains (kSDKPath));
346
-
347
- final VerificationResult toVerifyClang = verify (xcode.clang (captureAny));
348
- expect (toVerifyClang.callCount, 1 );
349
- final List <String > clangArgs = toVerifyClang.captured.first;
350
- expect (clangArgs, contains ('-fembed-bitcode' ));
351
- expect (clangArgs, contains ('-isysroot' ));
352
- expect (clangArgs, contains (kSDKPath));
337
+ verify (xcode.cc (argThat (contains ('-fembed-bitcode' )))).called (1 );
338
+ verify (xcode.clang (argThat (contains ('-fembed-bitcode' )))).called (1 );
353
339
354
340
final File assemblyFile = fs.file (assembly);
355
341
expect (assemblyFile.existsSync (), true );
@@ -394,19 +380,8 @@ void main() {
394
380
'main.dill' ,
395
381
]);
396
382
397
- final VerificationResult toVerifyCC = verify (xcode.cc (captureAny));
398
- expect (toVerifyCC.callCount, 1 );
399
- final List <String > ccArgs = toVerifyCC.captured.first;
400
- expect (ccArgs, contains ('-fembed-bitcode' ));
401
- expect (ccArgs, contains ('-isysroot' ));
402
- expect (ccArgs, contains (kSDKPath));
403
-
404
- final VerificationResult toVerifyClang = verify (xcode.clang (captureAny));
405
- expect (toVerifyClang.callCount, 1 );
406
- final List <String > clangArgs = toVerifyClang.captured.first;
407
- expect (clangArgs, contains ('-fembed-bitcode' ));
408
- expect (clangArgs, contains ('-isysroot' ));
409
- expect (clangArgs, contains (kSDKPath));
383
+ verify (xcode.cc (argThat (contains ('-fembed-bitcode' )))).called (1 );
384
+ verify (xcode.clang (argThat (contains ('-fembed-bitcode' )))).called (1 );
410
385
411
386
final File assemblyFile = fs.file (assembly);
412
387
final File assemblyBitcodeFile = fs.file ('$assembly .stripped.S' );
@@ -456,9 +431,6 @@ void main() {
456
431
verifyNever (xcode.cc (argThat (contains ('-fembed-bitcode' ))));
457
432
verifyNever (xcode.clang (argThat (contains ('-fembed-bitcode' ))));
458
433
459
- verify (xcode.cc (argThat (contains ('-isysroot' )))).called (1 );
460
- verify (xcode.clang (argThat (contains ('-isysroot' )))).called (1 );
461
-
462
434
final File assemblyFile = fs.file (assembly);
463
435
expect (assemblyFile.existsSync (), true );
464
436
expect (assemblyFile.readAsStringSync ().contains ('.section __DWARF' ), true );
0 commit comments