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

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

Issue 847663005: Send notifications using separate server operations. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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/mocks.dart
diff --git a/pkg/analysis_server/test/mocks.dart b/pkg/analysis_server/test/mocks.dart
index 49c2d039a56226ece6120add178f250b47179378..8644cd9aa1948a49e89f79c3cd85f72d03f304f1 100644
--- a/pkg/analysis_server/test/mocks.dart
+++ b/pkg/analysis_server/test/mocks.dart
@@ -58,7 +58,7 @@ Matcher isResponseSuccess(String id) => new _IsResponseSuccess(id);
* times. By default, this should pump the event queue enough times to allow
* any code to run, as long as it's not waiting on some external event.
*/
-Future pumpEventQueue([int times = 20]) {
+Future pumpEventQueue([int times = 50]) {
if (times == 0) return new Future.value();
// We use a delayed future to allow microtask events to finish. The
// Future.value or Future() constructors use scheduleMicrotask themselves and
@@ -323,15 +323,10 @@ class MockServerOperation implements PerformAnalysisOperation {
bool get isContinue => false;
@override
- void perform(AnalysisServer server) => this._perform(server);
-
- @override
- void sendNotices(AnalysisServer server, List<ChangeNotice> notices) {
- }
+ bool get isPriority => null;
@override
- void updateIndex(AnalysisServer server, List<ChangeNotice> notices) {
- }
+ void perform(AnalysisServer server) => this._perform(server);
}

Powered by Google App Engine
This is Rietveld 408576698