Fix AnalysisDriverCachingTest on Windows.

Change-Id: I4b10e4fb5ebbf9d3e12ce5b8217d8d86564ae4f1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/214509
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
This commit is contained in:
Konstantin Shcheglov 2021-09-26 18:28:44 +00:00 committed by commit-bot@chromium.org
parent 84c56cc846
commit 5f18cd99a4

View file

@ -18,6 +18,8 @@ main() {
@reflectiveTest
class AnalysisDriverCachingTest extends PubPackageResolutionTest {
String get testFilePathPlatform => convertPath(testFilePath);
List<Set<String>> get _linkedCycles {
var driver = driverFor(testFilePath);
return driver.test.libraryContext.linkedCycles;
@ -30,7 +32,7 @@ class A {
}
''');
driverFor(testFilePath).changeFile(testFilePath);
driverFor(testFilePathPlatform).changeFile(testFilePathPlatform);
await resolveTestCode(r'''
class A {
factory A() =;
@ -46,7 +48,7 @@ class A {
}
''');
driverFor(testFilePath).changeFile(testFilePath);
driverFor(testFilePathPlatform).changeFile(testFilePathPlatform);
await resolveTestCode(r'''
class A {
factory A() =
@ -62,7 +64,7 @@ class A {
}
''');
driverFor(testFilePath).changeFile(testFilePath);
driverFor(testFilePathPlatform).changeFile(testFilePathPlatform);
await resolveTestCode(r'''
class A {
const