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

Unified Diff: pkg/analyzer/test/generated/test_support.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/analyzer/test/generated/test_support.dart
diff --git a/pkg/analyzer/test/generated/test_support.dart b/pkg/analyzer/test/generated/test_support.dart
index b9118a46a38f6f8112584a4db76cd4d824cc8b2f..3344dfc49d9a4443daeeff2769c4e124822c6d95 100644
--- a/pkg/analyzer/test/generated/test_support.dart
+++ b/pkg/analyzer/test/generated/test_support.dart
@@ -23,10 +23,6 @@ import 'package:unittest/unittest.dart';
* The class `EngineTestCase` defines utility methods for making assertions.
*/
class EngineTestCase {
- void setUp() {}
-
- void tearDown() {}
-
/**
* Assert that the given collection has the same number of elements as the number of specified
* names, and that for each specified name, a corresponding element can be found in the given
@@ -99,6 +95,10 @@ class EngineTestCase {
return null;
}
+ void setUp() {}
+
+ void tearDown() {}
+
/**
* Assert that the given object is an instance of the expected class.
*
@@ -110,7 +110,8 @@ class EngineTestCase {
static Object assertInstanceOf(Predicate<Object> predicate,
Type expectedClass, Object object) {
if (!predicate(object)) {
- fail("Expected instance of $expectedClass, found ${object == null ? "null" : object.runtimeType}");
+ fail(
+ "Expected instance of $expectedClass, found ${object == null ? "null" : object.runtimeType}");
}
return object;
}
@@ -221,13 +222,17 @@ class GatheringErrorListener implements AnalysisErrorListener {
* @throws AssertionFailedError if a different number of errors have been gathered than were
* expected
*/
- void assertErrorsWithCodes([List<ErrorCode> expectedErrorCodes = ErrorCode.EMPTY_LIST]) {
+ void assertErrorsWithCodes([List<ErrorCode> expectedErrorCodes =
+ ErrorCode.EMPTY_LIST]) {
StringBuffer buffer = new StringBuffer();
//
// Verify that the expected error codes have a non-empty message.
//
for (ErrorCode errorCode in expectedErrorCodes) {
- expect(errorCode.message.isEmpty, isFalse, reason: "Empty error code message");
+ expect(
+ errorCode.message.isEmpty,
+ isFalse,
+ reason: "Empty error code message");
}
//
// Compute the expected number of each type of error.
@@ -340,7 +345,8 @@ class GatheringErrorListener implements AnalysisErrorListener {
}
if (expectedErrorCount != actualErrorCount ||
expectedWarningCount != actualWarningCount) {
- fail("Expected $expectedErrorCount errors and $expectedWarningCount warnings, found $actualErrorCount errors and $actualWarningCount warnings");
+ fail(
+ "Expected $expectedErrorCount errors and $expectedWarningCount warnings, found $actualErrorCount errors and $actualWarningCount warnings");
}
}
@@ -581,10 +587,6 @@ class TestSource implements Source {
}
return new TimestampedData<String>(0, _contents);
}
- void setContents(String value) {
- modificationStamp = new DateTime.now().millisecondsSinceEpoch;
- _contents = value;
- }
String get encoding {
throw new UnsupportedOperationException();
}
@@ -620,4 +622,8 @@ class TestSource implements Source {
Uri resolveRelativeUri(Uri uri) {
return new Uri(scheme: 'file', path: _name).resolveUri(uri);
}
+ void setContents(String value) {
+ modificationStamp = new DateTime.now().millisecondsSinceEpoch;
+ _contents = value;
+ }
}
« no previous file with comments | « pkg/analyzer/test/generated/static_warning_code_test.dart ('k') | pkg/analyzer/test/generated/utilities_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698