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

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

Issue 725143004: Format and sort analyzer and analysis_server packages. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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/analysis_abstract.dart
diff --git a/pkg/analysis_server/test/analysis_abstract.dart b/pkg/analysis_server/test/analysis_abstract.dart
index d1bbdf9c08775ae784cac94abac1e682dd4e6f51..284b383c9650750d4bb3aedf50f6b9981505a4ac 100644
--- a/pkg/analysis_server/test/analysis_abstract.dart
+++ b/pkg/analysis_server/test/analysis_abstract.dart
@@ -10,11 +10,11 @@ import 'package:analysis_server/src/analysis_server.dart';
import 'package:analysis_server/src/domain_analysis.dart';
import 'package:analysis_server/src/protocol.dart';
import 'package:analysis_server/src/services/index/index.dart';
-import 'mock_sdk.dart';
import 'package:analyzer/file_system/file_system.dart';
import 'package:analyzer/file_system/memory_file_system.dart';
import 'package:unittest/unittest.dart';
+import 'mock_sdk.dart';
import 'mocks.dart';
@@ -23,8 +23,8 @@ int findIdentifierLength(String search) {
while (length < search.length) {
int c = search.codeUnitAt(length);
if (!(c >= 'a'.codeUnitAt(0) && c <= 'z'.codeUnitAt(0) ||
- c >= 'A'.codeUnitAt(0) && c <= 'Z'.codeUnitAt(0) ||
- c >= '0'.codeUnitAt(0) && c <= '9'.codeUnitAt(0))) {
+ c >= 'A'.codeUnitAt(0) && c <= 'Z'.codeUnitAt(0) ||
+ c >= '0'.codeUnitAt(0) && c <= '9'.codeUnitAt(0))) {
break;
}
length++;
@@ -56,9 +56,7 @@ class AbstractAnalysisTest {
// Map<String, List<Map<String, Object>>> filesNavigation = {};
- AbstractAnalysisTest() {
- }
-
+ AbstractAnalysisTest();
void addAnalysisSubscription(AnalysisService service, String file) {
// add file to subscription
var files = analysisSubscriptions[service];
@@ -68,8 +66,8 @@ class AbstractAnalysisTest {
}
files.add(file);
// set subscriptions
- Request request = new AnalysisSetSubscriptionsParams(
- analysisSubscriptions).toRequest('0');
+ Request request =
+ new AnalysisSetSubscriptionsParams(analysisSubscriptions).toRequest('0');
handleSuccessfulRequest(request);
}
@@ -84,12 +82,6 @@ class AbstractAnalysisTest {
return testFile;
}
- String modifyTestFile(String content) {
- addFile(testFile, content);
- this.testCode = content;
- return testFile;
- }
-
Index createIndex() {
return null;
}
@@ -99,8 +91,8 @@ class AbstractAnalysisTest {
*/
void createProject() {
resourceProvider.newFolder(projectPath);
- Request request = new AnalysisSetAnalysisRootsParams([projectPath],
- []).toRequest('0');
+ Request request =
+ new AnalysisSetAnalysisRootsParams([projectPath], []).toRequest('0');
handleSuccessfulRequest(request);
}
@@ -135,6 +127,12 @@ class AbstractAnalysisTest {
return response;
}
+ String modifyTestFile(String content) {
+ addFile(testFile, content);
+ this.testCode = content;
+ return testFile;
+ }
+
// /**
// * Returns [AnalysisError]s recorded for the given [file].
// * May be empty, but not `null`.
@@ -230,13 +228,17 @@ class AbstractAnalysisTest {
packageMapProvider = new MockPackageMapProvider();
Index index = createIndex();
server = new AnalysisServer(
- serverChannel, resourceProvider, packageMapProvider, index,
+ serverChannel,
+ resourceProvider,
+ packageMapProvider,
+ index,
new MockSdk());
server.contextDirectoryManager.defaultOptions.enableAsync = true;
server.contextDirectoryManager.defaultOptions.enableEnum = true;
handler = new AnalysisDomainHandler(server);
// listen for notifications
- Stream<Notification> notificationStream = serverChannel.notificationController.stream;
+ Stream<Notification> notificationStream =
+ serverChannel.notificationController.stream;
notificationStream.listen((Notification notification) {
processNotification(notification);
});
« no previous file with comments | « pkg/analysis_server/test/analysis/notification_errors_test.dart ('k') | pkg/analysis_server/test/analysis_server_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698