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

Unified Diff: pkg/analysis_server/test/domain_execution_test.dart

Issue 630863003: Stop sending launchData for non-analyzed files (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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: pkg/analysis_server/test/domain_execution_test.dart
diff --git a/pkg/analysis_server/test/domain_execution_test.dart b/pkg/analysis_server/test/domain_execution_test.dart
index c074fa1b14c8d4144b76acb0d6be8e2c1136950d..109724f161e5043e76a9683bf23d50cc518a246e 100644
--- a/pkg/analysis_server/test/domain_execution_test.dart
+++ b/pkg/analysis_server/test/domain_execution_test.dart
@@ -177,8 +177,14 @@ main() {
when(context.getLibrariesReferencedFromHtml(anyObject))
.thenReturn([source6, source7]);
+ ServerContextManager manager = new ServerContextManagerMock();
+ when(manager.isInAnalysisRoot(anyObject)).thenInvoke((String path) {
scheglov 2014/10/06 16:51:44 You could use anyString instead, if the argument i
Brian Wilkerson 2014/10/06 18:56:20 Done
+ return true;
+ });
+
AnalysisServer server = new AnalysisServerMock();
when(server.getAnalysisContexts()).thenReturn([context]);
+ when(server.contextDirectoryManager).thenReturn(manager);
when(server.isAnalysisComplete()).thenReturn(false);
StreamController controller = new StreamController.broadcast(sync: true);

Powered by Google App Engine
This is Rietveld 408576698