-
Notifications
You must be signed in to change notification settings - Fork 337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add service manager tests and test_driver. #60
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm once a solution to the package:flutter_tools issue is solved.
Lgtm
…On Wed, Dec 19, 2018, 8:18 AM Kenzie Schmoll ***@***.*** wrote:
***@***.**** commented on this pull request.
------------------------------
In test/service_manager_test.dart
<#60 (comment)>:
> + stream.cancel();
+ });
+
+ // Enable the service extension via ServiceExtensionManager.
+ await serviceManager.serviceExtensionManager
+ .setServiceExtensionState('ext.flutter.debugPaint', true, true);
+
+ // Verify the test device is aware of the newly-enabled state.
+ final after = await library.eval('debugPaintSizeEnabled', isAlive: null);
+ if (after is InstanceRef) {
+ expect(after.valueAsString, 'true');
+ }
+ // Verify ServiceExtensionManager is aware of the newly-enabled state.
+ stream = serviceManager.serviceExtensionManager
+ .getServiceExtensionState('ext.flutter.debugPaint', null);
+ stream.onData((ServiceExtensionState state) {
see above. Obsolete now.
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
<#60 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABK4PJuAScWvDLgwvyLRRfvDqa4EsGjjks5u6mbugaJpZM4ZZQ2A>
.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice job reducing the dependencies pulled it!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be nice to keep formatting of unrelated files out of this cl. it makes things hard to review.
Includes some async/await polish as well.