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

Side by Side Diff: pkg/analyzer/test/generated/engine_test.dart

Issue 1127183003: Rename EMPTY_ARRAY to EMPTY_LIST (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/analyzer/lib/task/dart.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // This code was auto-generated, is not intended to be edited, and is subject to 5 // This code was auto-generated, is not intended to be edited, and is subject to
6 // significant change. Please see the README file for more information. 6 // significant change. Please see the README file for more information.
7 7
8 library engine.engine_test; 8 library engine.engine_test;
9 9
10 import 'dart:async'; 10 import 'dart:async';
(...skipping 5353 matching lines...) Expand 10 before | Expand all | Expand 10 after
5364 void test_removed() { 5364 void test_removed() {
5365 var source = new StringSource('', '/test.dart'); 5365 var source = new StringSource('', '/test.dart');
5366 var changeSet = new ChangeSet(); 5366 var changeSet = new ChangeSet();
5367 changeSet.removedSource(source); 5367 changeSet.removedSource(source);
5368 var event = new SourcesChangedEvent(changeSet); 5368 var event = new SourcesChangedEvent(changeSet);
5369 assertEvent(event, wereSourcesRemovedOrDeleted: true); 5369 assertEvent(event, wereSourcesRemovedOrDeleted: true);
5370 } 5370 }
5371 5371
5372 static void assertEvent(SourcesChangedEvent event, 5372 static void assertEvent(SourcesChangedEvent event,
5373 {bool wereSourcesAdded: false, 5373 {bool wereSourcesAdded: false,
5374 List<Source> changedSources: Source.EMPTY_ARRAY, 5374 List<Source> changedSources: Source.EMPTY_LIST,
5375 bool wereSourcesRemovedOrDeleted: false}) { 5375 bool wereSourcesRemovedOrDeleted: false}) {
5376 expect(event.wereSourcesAdded, wereSourcesAdded); 5376 expect(event.wereSourcesAdded, wereSourcesAdded);
5377 expect(event.changedSources, changedSources); 5377 expect(event.changedSources, changedSources);
5378 expect(event.wereSourcesRemovedOrDeleted, wereSourcesRemovedOrDeleted); 5378 expect(event.wereSourcesRemovedOrDeleted, wereSourcesRemovedOrDeleted);
5379 } 5379 }
5380 } 5380 }
5381 5381
5382 class SourcesChangedListener { 5382 class SourcesChangedListener {
5383 List<SourcesChangedEvent> actualEvents = []; 5383 List<SourcesChangedEvent> actualEvents = [];
5384 5384
5385 void assertEvent({bool wereSourcesAdded: false, 5385 void assertEvent({bool wereSourcesAdded: false,
5386 List<Source> changedSources: Source.EMPTY_ARRAY, 5386 List<Source> changedSources: Source.EMPTY_LIST,
5387 bool wereSourcesRemovedOrDeleted: false}) { 5387 bool wereSourcesRemovedOrDeleted: false}) {
5388 if (actualEvents.isEmpty) { 5388 if (actualEvents.isEmpty) {
5389 fail('Expected event but found none'); 5389 fail('Expected event but found none');
5390 } 5390 }
5391 SourcesChangedEvent actual = actualEvents.removeAt(0); 5391 SourcesChangedEvent actual = actualEvents.removeAt(0);
5392 SourcesChangedEventTest.assertEvent(actual, 5392 SourcesChangedEventTest.assertEvent(actual,
5393 wereSourcesAdded: wereSourcesAdded, 5393 wereSourcesAdded: wereSourcesAdded,
5394 changedSources: changedSources, 5394 changedSources: changedSources,
5395 wereSourcesRemovedOrDeleted: wereSourcesRemovedOrDeleted); 5395 wereSourcesRemovedOrDeleted: wereSourcesRemovedOrDeleted);
5396 } 5396 }
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after
5987 } 5987 }
5988 } 5988 }
5989 5989
5990 class TestAnalysisContext_test_getHtmlFilesReferencing 5990 class TestAnalysisContext_test_getHtmlFilesReferencing
5991 extends TestAnalysisContext { 5991 extends TestAnalysisContext {
5992 bool invoked = false; 5992 bool invoked = false;
5993 TestAnalysisContext_test_getHtmlFilesReferencing(); 5993 TestAnalysisContext_test_getHtmlFilesReferencing();
5994 @override 5994 @override
5995 List<Source> getHtmlFilesReferencing(Source source) { 5995 List<Source> getHtmlFilesReferencing(Source source) {
5996 invoked = true; 5996 invoked = true;
5997 return Source.EMPTY_ARRAY; 5997 return Source.EMPTY_LIST;
5998 } 5998 }
5999 } 5999 }
6000 6000
6001 class TestAnalysisContext_test_getHtmlSources extends TestAnalysisContext { 6001 class TestAnalysisContext_test_getHtmlSources extends TestAnalysisContext {
6002 bool invoked = false; 6002 bool invoked = false;
6003 TestAnalysisContext_test_getHtmlSources(); 6003 TestAnalysisContext_test_getHtmlSources();
6004 @override 6004 @override
6005 List<Source> get htmlSources { 6005 List<Source> get htmlSources {
6006 invoked = true; 6006 invoked = true;
6007 return Source.EMPTY_ARRAY; 6007 return Source.EMPTY_LIST;
6008 } 6008 }
6009 } 6009 }
6010 6010
6011 class TestAnalysisContext_test_getKindOf extends TestAnalysisContext { 6011 class TestAnalysisContext_test_getKindOf extends TestAnalysisContext {
6012 bool invoked = false; 6012 bool invoked = false;
6013 TestAnalysisContext_test_getKindOf(); 6013 TestAnalysisContext_test_getKindOf();
6014 @override 6014 @override
6015 SourceKind getKindOf(Source source) { 6015 SourceKind getKindOf(Source source) {
6016 invoked = true; 6016 invoked = true;
6017 return null; 6017 return null;
6018 } 6018 }
6019 } 6019 }
6020 6020
6021 class TestAnalysisContext_test_getLaunchableClientLibrarySources 6021 class TestAnalysisContext_test_getLaunchableClientLibrarySources
6022 extends TestAnalysisContext { 6022 extends TestAnalysisContext {
6023 bool invoked = false; 6023 bool invoked = false;
6024 TestAnalysisContext_test_getLaunchableClientLibrarySources(); 6024 TestAnalysisContext_test_getLaunchableClientLibrarySources();
6025 @override 6025 @override
6026 List<Source> get launchableClientLibrarySources { 6026 List<Source> get launchableClientLibrarySources {
6027 invoked = true; 6027 invoked = true;
6028 return Source.EMPTY_ARRAY; 6028 return Source.EMPTY_LIST;
6029 } 6029 }
6030 } 6030 }
6031 6031
6032 class TestAnalysisContext_test_getLaunchableServerLibrarySources 6032 class TestAnalysisContext_test_getLaunchableServerLibrarySources
6033 extends TestAnalysisContext { 6033 extends TestAnalysisContext {
6034 bool invoked = false; 6034 bool invoked = false;
6035 TestAnalysisContext_test_getLaunchableServerLibrarySources(); 6035 TestAnalysisContext_test_getLaunchableServerLibrarySources();
6036 @override 6036 @override
6037 List<Source> get launchableServerLibrarySources { 6037 List<Source> get launchableServerLibrarySources {
6038 invoked = true; 6038 invoked = true;
6039 return Source.EMPTY_ARRAY; 6039 return Source.EMPTY_LIST;
6040 } 6040 }
6041 } 6041 }
6042 6042
6043 class TestAnalysisContext_test_getLibrariesContaining 6043 class TestAnalysisContext_test_getLibrariesContaining
6044 extends TestAnalysisContext { 6044 extends TestAnalysisContext {
6045 bool invoked = false; 6045 bool invoked = false;
6046 TestAnalysisContext_test_getLibrariesContaining(); 6046 TestAnalysisContext_test_getLibrariesContaining();
6047 @override 6047 @override
6048 List<Source> getLibrariesContaining(Source source) { 6048 List<Source> getLibrariesContaining(Source source) {
6049 invoked = true; 6049 invoked = true;
6050 return Source.EMPTY_ARRAY; 6050 return Source.EMPTY_LIST;
6051 } 6051 }
6052 } 6052 }
6053 6053
6054 class TestAnalysisContext_test_getLibrariesDependingOn 6054 class TestAnalysisContext_test_getLibrariesDependingOn
6055 extends TestAnalysisContext { 6055 extends TestAnalysisContext {
6056 bool invoked = false; 6056 bool invoked = false;
6057 TestAnalysisContext_test_getLibrariesDependingOn(); 6057 TestAnalysisContext_test_getLibrariesDependingOn();
6058 @override 6058 @override
6059 List<Source> getLibrariesDependingOn(Source librarySource) { 6059 List<Source> getLibrariesDependingOn(Source librarySource) {
6060 invoked = true; 6060 invoked = true;
6061 return Source.EMPTY_ARRAY; 6061 return Source.EMPTY_LIST;
6062 } 6062 }
6063 } 6063 }
6064 6064
6065 class TestAnalysisContext_test_getLibrariesReferencedFromHtml 6065 class TestAnalysisContext_test_getLibrariesReferencedFromHtml
6066 extends TestAnalysisContext { 6066 extends TestAnalysisContext {
6067 bool invoked = false; 6067 bool invoked = false;
6068 TestAnalysisContext_test_getLibrariesReferencedFromHtml(); 6068 TestAnalysisContext_test_getLibrariesReferencedFromHtml();
6069 @override 6069 @override
6070 List<Source> getLibrariesReferencedFromHtml(Source htmlSource) { 6070 List<Source> getLibrariesReferencedFromHtml(Source htmlSource) {
6071 invoked = true; 6071 invoked = true;
(...skipping 10 matching lines...) Expand all
6082 return null; 6082 return null;
6083 } 6083 }
6084 } 6084 }
6085 6085
6086 class TestAnalysisContext_test_getLibrarySources extends TestAnalysisContext { 6086 class TestAnalysisContext_test_getLibrarySources extends TestAnalysisContext {
6087 bool invoked = false; 6087 bool invoked = false;
6088 TestAnalysisContext_test_getLibrarySources(); 6088 TestAnalysisContext_test_getLibrarySources();
6089 @override 6089 @override
6090 List<Source> get librarySources { 6090 List<Source> get librarySources {
6091 invoked = true; 6091 invoked = true;
6092 return Source.EMPTY_ARRAY; 6092 return Source.EMPTY_LIST;
6093 } 6093 }
6094 } 6094 }
6095 6095
6096 class TestAnalysisContext_test_getLineInfo extends TestAnalysisContext { 6096 class TestAnalysisContext_test_getLineInfo extends TestAnalysisContext {
6097 bool invoked = false; 6097 bool invoked = false;
6098 TestAnalysisContext_test_getLineInfo(); 6098 TestAnalysisContext_test_getLineInfo();
6099 @override 6099 @override
6100 LineInfo getLineInfo(Source source) { 6100 LineInfo getLineInfo(Source source) {
6101 invoked = true; 6101 invoked = true;
6102 return null; 6102 return null;
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
6600 @override 6600 @override
6601 bool exists() => true; 6601 bool exists() => true;
6602 } 6602 }
6603 6603
6604 class _UniversalCachePartitionTest_test_setMaxCacheSize 6604 class _UniversalCachePartitionTest_test_setMaxCacheSize
6605 implements CacheRetentionPolicy { 6605 implements CacheRetentionPolicy {
6606 @override 6606 @override
6607 RetentionPriority getAstPriority(Source source, SourceEntry sourceEntry) => 6607 RetentionPriority getAstPriority(Source source, SourceEntry sourceEntry) =>
6608 RetentionPriority.LOW; 6608 RetentionPriority.LOW;
6609 } 6609 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/task/dart.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698