forked from flutter/engine
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ResultReference<T> to record_replay library. (flutter#18)
This introduces a level of indirection that will allow recording objects to differentiate between the invocation result return value, the recorded result value, and the serialized result value. This is used to provide "special handling" of certain invocation results (such as byte arrays) to make recordings more human-readable & editable. This design also yields more technical correctness over the previous design. This is because we used to delay recording an invocation whose result was a Future until that future completed. Now, we record the invocation immediately and late-record future results (with support for awaiting those futures when serializing a recoridng). Another step in flutter#11
- Loading branch information
Showing
9 changed files
with
726 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.