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

Unified Diff: pkg/analysis_server/test/stress/replay/operation.dart

Issue 1514693013: Updates to the stress test (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years 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/stress/replay/operation.dart
diff --git a/pkg/analysis_server/test/stress/replay/operation.dart b/pkg/analysis_server/test/stress/replay/operation.dart
index d7af722aebcd3bef48813a5c05f11e4c1bf2cf18..835eb5046b66296437c81703de595f172fb3a961 100644
--- a/pkg/analysis_server/test/stress/replay/operation.dart
+++ b/pkg/analysis_server/test/stress/replay/operation.dart
@@ -12,22 +12,22 @@ import '../utilities/server.dart';
/**
* An operation that will send an 'analysis.updateContent' request.
*/
-class AnalysisUpdateContent extends ServerOperation {
+class Analysis_UpdateContent extends ServerOperation {
/**
* The path of the file whose content is being updated.
*/
- String filePath;
+ final String filePath;
/**
* The overlay used to update the content.
*/
- dynamic overlay;
+ final dynamic overlay;
/**
* Initialize an operation to send an 'analysis.updateContent' request with
* the given [filePath] and [overlay] as parameters.
*/
- AnalysisUpdateContent(this.filePath, this.overlay);
+ Analysis_UpdateContent(this.filePath, this.overlay);
@override
void perform(Server server) {
@@ -46,6 +46,32 @@ class AnalysisUpdateContent extends ServerOperation {
}
/**
+ * An operation that will send a 'completion.getSuggestions' request.
+ */
+class Completion_GetSuggestions extends ServerOperation {
+ /**
+ * The path of the file in which completions are being requested.
+ */
+ final String filePath;
+
+ /**
+ * The offset at which completions are being requested.
+ */
+ final int offset;
+
+ /**
+ * Initialize an operation to send a 'completion.getSuggestions' request with
+ * the given [filePath] and [offset] as parameters.
+ */
+ Completion_GetSuggestions(this.filePath, this.offset);
+
+ @override
+ void perform(Server server) {
+ server.sendCompletionGetSuggestions(filePath, offset);
+ }
+}
+
+/**
* An operation to be performed during the simulation.
*/
abstract class ServerOperation {
« no previous file with comments | « no previous file | pkg/analysis_server/test/stress/replay/replay.dart » ('j') | pkg/analysis_server/test/stress/replay/replay.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698