Adding prepareForLinking to mock to remove warning.
Merge pull request #2684 from dart-lang/umop-linking-analyze_on_load-warning

Adding prepareForLinking to mock to remove warning.