Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(233)

Unified Diff: sdk/lib/_internal/pub/test/descriptor.dart

Issue 548603002: Use the VM to detect when a precompiled executable is out-of-date. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.
///

Powered by Google App Engine
This is Rietveld 408576698