Index: sdk/lib/_internal/pub/test/descriptor.dart |
diff --git a/sdk/lib/_internal/pub/test/descriptor.dart b/sdk/lib/_internal/pub/test/descriptor.dart |
index aec82a361a20aa0b4f7dd5c02ed517e6c1a27567..67db472436906cd6362d3b9c17b35bb23ba27d7e 100644 |
--- a/sdk/lib/_internal/pub/test/descriptor.dart |
+++ b/sdk/lib/_internal/pub/test/descriptor.dart |
@@ -9,6 +9,7 @@ import 'package:oauth2/oauth2.dart' as oauth2; |
import 'package:scheduled_test/scheduled_server.dart'; |
import 'package:scheduled_test/descriptor.dart'; |
+import '../lib/src/io.dart'; |
import '../lib/src/utils.dart'; |
import 'descriptor/git.dart'; |
import 'descriptor/tar.dart'; |
@@ -35,6 +36,13 @@ Descriptor get validPackage => dir(appPath, [ |
]) |
]); |
+/// Returns a descriptor of a snapshot that can't be run by the current VM. |
+/// |
+/// This snapshot was generated by the VM on r39611, the revision immediately |
+/// before snapshot versioning was added. |
+FileDescriptor outOfDateSnapshot(String name) => |
+ binaryFile(name, readBinaryFile(testAssetPath('out-of-date.snapshot'))); |
+ |
/// Describes a file named `pubspec.yaml` with the given YAML-serialized |
/// [contents], which should be a serializable object. |
/// |