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

Unified Diff: pkg/analysis_server/test/services/index/store/split_store_test.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/services/index/store/split_store_test.dart
diff --git a/pkg/analysis_server/test/services/index/store/split_store_test.dart b/pkg/analysis_server/test/services/index/store/split_store_test.dart
index 68b7eb3075ce084648703cbc2e39f88672ecb0db..ba994acd6a3a30a988225faf6dd6d88f687403ce 100644
--- a/pkg/analysis_server/test/services/index/store/split_store_test.dart
+++ b/pkg/analysis_server/test/services/index/store/split_store_test.dart
@@ -10,14 +10,14 @@ import 'package:analysis_server/src/services/index/index.dart';
import 'package:analysis_server/src/services/index/store/codec.dart';
import 'package:analysis_server/src/services/index/store/memory_node_manager.dart';
import 'package:analysis_server/src/services/index/store/split_store.dart';
-import '../../../mocks.dart';
-import '../../../reflective_tests.dart';
import 'package:analyzer/src/generated/element.dart';
import 'package:analyzer/src/generated/engine.dart';
import 'package:analyzer/src/generated/source.dart';
import 'package:typed_mock/typed_mock.dart';
import 'package:unittest/unittest.dart';
+import '../../../mocks.dart';
+import '../../../reflective_tests.dart';
import 'mocks.dart';
import 'single_source_container.dart';
@@ -32,15 +32,8 @@ main() {
}
-void _assertHasLocationQ(List<Location> locations, Element element, int offset,
- int length) {
- _assertHasLocation(locations, element, offset, length, isQualified: true);
-}
-
-
void _assertHasLocation(List<Location> locations, Element element, int offset,
- int length, {bool isQualified: false,
- bool isResolved: true}) {
+ int length, {bool isQualified: false, bool isResolved: true}) {
for (Location location in locations) {
if ((element == null || location.element == element) &&
location.offset == offset &&
@@ -56,6 +49,12 @@ void _assertHasLocation(List<Location> locations, Element element, int offset,
}
+void _assertHasLocationQ(List<Location> locations, Element element, int offset,
+ int length) {
+ _assertHasLocation(locations, element, offset, length, isQualified: true);
+}
+
+
@ReflectiveTestCase()
class _FileNodeManagerTest {
MockLogger logger = new MockLogger();
@@ -459,12 +458,11 @@ class _RelationKeyDataTest {
int relationshipId = 1;
when(relationshipCodec.encode(relationship)).thenReturn(relationshipId);
// create RelationKeyData
- RelationKeyData keyData =
- new RelationKeyData.forObject(
- elementCodec,
- relationshipCodec,
- element,
- relationship);
+ RelationKeyData keyData = new RelationKeyData.forObject(
+ elementCodec,
+ relationshipCodec,
+ element,
+ relationship);
// touch
keyData.hashCode;
// equals

Powered by Google App Engine
This is Rietveld 408576698