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

Unified Diff: pkg/analysis_server/test/services/index/store/codec_test.dart

Issue 969113002: Reformat (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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/services/index/store/codec_test.dart
diff --git a/pkg/analysis_server/test/services/index/store/codec_test.dart b/pkg/analysis_server/test/services/index/store/codec_test.dart
index e9ed6267371a465f8f546aead4547019c59a09e0..1ad0e42cc3506900f96a20d3d501c4e86dc97ef7 100644
--- a/pkg/analysis_server/test/services/index/store/codec_test.dart
+++ b/pkg/analysis_server/test/services/index/store/codec_test.dart
@@ -15,7 +15,6 @@ import '../../../abstract_single_unit.dart';
import '../../../mocks.dart';
import '../../../reflective_tests.dart';
-
main() {
groupSep = ' | ';
runReflectiveTests(_ContextCodecTest);
@@ -24,7 +23,6 @@ main() {
runReflectiveTests(_StringCodecTest);
}
-
@reflectiveTest
class _ContextCodecTest {
ContextCodec codec = new ContextCodec();
@@ -63,7 +61,6 @@ class _ContextCodecTest {
}
}
-
@reflectiveTest
class _ElementCodecTest extends AbstractSingleUnitTest {
ElementCodec codec;
@@ -124,8 +121,10 @@ class A {
void test_filePackage_uriMix() {
MethodElement buildMethodElement(Source source) {
- CompilationUnitElementImpl unitElement = new CompilationUnitElementImpl('file.dart');
- LibraryElementImpl libraryElement = new LibraryElementImpl(null, 'lib', 0);
+ CompilationUnitElementImpl unitElement =
+ new CompilationUnitElementImpl('file.dart');
+ LibraryElementImpl libraryElement =
+ new LibraryElementImpl(null, 'lib', 0);
ClassElementImpl classElement = new ClassElementImpl('A', 0);
MethodElementImpl methodElement = new MethodElementImpl('m', 0);
unitElement.source = source;
@@ -144,7 +143,8 @@ class A {
// package:
int packageId;
{
- Source source = new _TestSource('/my/file.dart', 'package:my_pkg/file.dart');
+ Source source =
+ new _TestSource('/my/file.dart', 'package:my_pkg/file.dart');
var methodElement = buildMethodElement(source);
packageId = codec.encode(methodElement, true);
}
@@ -231,7 +231,6 @@ main() {
}
}
-
@reflectiveTest
class _RelationshipCodecTest {
StringCodec stringCodec = new StringCodec();
@@ -248,7 +247,6 @@ class _RelationshipCodecTest {
}
}
-
@reflectiveTest
class _StringCodecTest {
StringCodec codec = new StringCodec();
@@ -261,7 +259,6 @@ class _StringCodecTest {
}
}
-
class _TestSource implements Source {
final String fullName;
final String encoding;

Powered by Google App Engine
This is Rietveld 408576698