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

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

Issue 2276033003: Correctly use sdk passed on command-line (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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/mock_sdk.dart
diff --git a/pkg/analysis_server/test/mock_sdk.dart b/pkg/analysis_server/test/mock_sdk.dart
index 18d5316efdf6cd257e2cf1e84b93e464a2500b9e..5681817f2775a8d1c8a3d6c1f7de9ca367e851ba 100644
--- a/pkg/analysis_server/test/mock_sdk.dart
+++ b/pkg/analysis_server/test/mock_sdk.dart
@@ -13,7 +13,7 @@ import 'package:analyzer/src/generated/source.dart';
import 'package:analyzer/src/summary/idl.dart' show PackageBundle;
class MockSdk implements DartSdk {
- static const _MockSdkLibrary LIB_CORE = const _MockSdkLibrary(
+ static const MockSdkLibrary LIB_CORE = const MockSdkLibrary(
'dart:core',
'/lib/core/core.dart',
'''
@@ -155,7 +155,7 @@ class Uri {
}
''');
- static const _MockSdkLibrary LIB_ASYNC = const _MockSdkLibrary(
+ static const MockSdkLibrary LIB_ASYNC = const MockSdkLibrary(
'dart:async',
'/lib/async/async.dart',
'''
@@ -174,7 +174,7 @@ class Stream<T> {}
abstract class StreamTransformer<S, T> {}
''');
- static const _MockSdkLibrary LIB_COLLECTION = const _MockSdkLibrary(
+ static const MockSdkLibrary LIB_COLLECTION = const MockSdkLibrary(
'dart:collection',
'/lib/collection/collection.dart',
'''
@@ -183,7 +183,7 @@ library dart.collection;
abstract class HashMap<K, V> implements Map<K, V> {}
''');
- static const _MockSdkLibrary LIB_CONVERT = const _MockSdkLibrary(
+ static const MockSdkLibrary LIB_CONVERT = const MockSdkLibrary(
'dart:convert',
'/lib/convert/convert.dart',
'''
@@ -195,7 +195,7 @@ abstract class Converter<S, T> implements StreamTransformer {}
class JsonDecoder extends Converter<String, Object> {}
''');
- static const _MockSdkLibrary LIB_MATH = const _MockSdkLibrary(
+ static const MockSdkLibrary LIB_MATH = const MockSdkLibrary(
'dart:math',
'/lib/math/math.dart',
'''
@@ -216,7 +216,7 @@ class Random {
}
''');
- static const _MockSdkLibrary LIB_HTML = const _MockSdkLibrary(
+ static const MockSdkLibrary LIB_HTML = const MockSdkLibrary(
'dart:html',
'/lib/html/dartium/html_dartium.dart',
'''
@@ -224,7 +224,7 @@ library dart.html;
class HtmlElement {}
''');
- static const _MockSdkLibrary LIB_INTERNAL = const _MockSdkLibrary(
+ static const MockSdkLibrary LIB_INTERNAL = const MockSdkLibrary(
'dart:_internal',
'/lib/internal/internal.dart',
'''
@@ -252,7 +252,7 @@ external void printToConsole(String line);
MockSdk() {
LIBRARIES.forEach((SdkLibrary library) {
- provider.newFile(library.path, (library as _MockSdkLibrary).content);
+ provider.newFile(library.path, (library as MockSdkLibrary).content);
});
}
@@ -352,12 +352,12 @@ external void printToConsole(String line);
}
}
-class _MockSdkLibrary implements SdkLibrary {
+class MockSdkLibrary implements SdkLibrary {
final String shortName;
final String path;
final String content;
- const _MockSdkLibrary(this.shortName, this.path, this.content);
+ const MockSdkLibrary(this.shortName, this.path, this.content);
@override
String get category => throw unimplemented;

Powered by Google App Engine
This is Rietveld 408576698