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

Unified Diff: mojo/public/dart/src/application.dart

Issue 971083002: Create an apptesting framework for dart. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Update upload_binaries.py to add the apptest.dartzip artifact. Created 5 years, 10 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: mojo/public/dart/src/application.dart
diff --git a/mojo/public/dart/src/application.dart b/mojo/public/dart/src/application.dart
index 7588209fa847a82cdd7978d30c5f075288b25c72..d0d2afe9d6e3d12a269ed28cb718dcd8098147c5 100644
--- a/mojo/public/dart/src/application.dart
+++ b/mojo/public/dart/src/application.dart
@@ -131,6 +131,13 @@ abstract class Application {
_applicationImpl.close();
}
+ // This method closes all the application connections. Used during apptesting.
+ resetConnections() {
+ assert(_applicationImpl != null);
+ _applicationConnections.forEach((c) => c.close());
+ _applicationConnections.clear();
+ }
+
void _acceptConnection(String requestorUrl, ServiceProviderStub services,
ServiceProviderProxy exposedServices, String resolvedUrl) {
var connection = new ApplicationConnection(services, exposedServices);

Powered by Google App Engine
This is Rietveld 408576698