mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 14:32:24 +00:00
Add fixes for Remaining renames
Add fix definitions and tests for renamed class and top level constants in `dart:developer` and `dart:io`. Change-Id: I6851bd61c68fdcff461117fe8f2ab1c3890cb9df Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/214000 Auto-Submit: Nate Bosch <nbosch@google.com> Reviewed-by: Lasse R.H. Nielsen <lrn@google.com> Commit-Queue: Nate Bosch <nbosch@google.com>
This commit is contained in:
parent
9220ce35cb
commit
bcaa2a320c
5 changed files with 2041 additions and 0 deletions
File diff suppressed because it is too large
Load diff
12
tests/lib/fix_data_tests/developer.dart
Normal file
12
tests/lib/fix_data_tests/developer.dart
Normal file
|
@ -0,0 +1,12 @@
|
|||
// Copyright (c) 2021, the Dart project authors. Please see the AUTHORS file
|
||||
// for details. All rights reserved. Use of this source code is governed by a
|
||||
// BSD-style license that can be found in the LICENSE file.
|
||||
|
||||
import 'dart:developer';
|
||||
|
||||
void main() {
|
||||
print(ServiceExtensionResponse.kInvalidParams);
|
||||
print(ServiceExtensionResponse.kExtensionError);
|
||||
print(ServiceExtensionResponse.kExtensionErrorMax);
|
||||
print(ServiceExtensionResponse.kExtensionErrorMin);
|
||||
}
|
12
tests/lib/fix_data_tests/developer.dart.expect
Normal file
12
tests/lib/fix_data_tests/developer.dart.expect
Normal file
|
@ -0,0 +1,12 @@
|
|||
// Copyright (c) 2021, the Dart project authors. Please see the AUTHORS file
|
||||
// for details. All rights reserved. Use of this source code is governed by a
|
||||
// BSD-style license that can be found in the LICENSE file.
|
||||
|
||||
import 'dart:developer';
|
||||
|
||||
void main() {
|
||||
print(ServiceExtensionResponse.invalidParams);
|
||||
print(ServiceExtensionResponse.extensionError);
|
||||
print(ServiceExtensionResponse.extensionErrorMax);
|
||||
print(ServiceExtensionResponse.extensionErrorMin);
|
||||
}
|
|
@ -53,4 +53,169 @@ void main() {
|
|||
print(HttpStatus.GATEWAY_TIMEOUT);
|
||||
print(HttpStatus.HTTP_VERSION_NOT_SUPPORTED);
|
||||
print(HttpStatus.NETWORK_CONNECT_TIMEOUT_ERROR);
|
||||
print(SYSTEM_ENCODING);
|
||||
print(StdioType.TERMINAL);
|
||||
print(StdioType.PIPE);
|
||||
print(StdioType.FILE);
|
||||
print(StdioType.OTHER);
|
||||
print(ProcessStartMode.NORMAL);
|
||||
print(ProcessStartMode.INHERIT_STDIO);
|
||||
print(ProcessStartMode.DETACHED);
|
||||
print(ProcessStartMode.DETACHED_WITH_STDIO);
|
||||
print(ProcessSignal.SIGHUP);
|
||||
print(ProcessSignal.SIGINT);
|
||||
print(ProcessSignal.SIGQUIT);
|
||||
print(ProcessSignal.SIGILL);
|
||||
print(ProcessSignal.SIGTRAP);
|
||||
print(ProcessSignal.SIGABRT);
|
||||
print(ProcessSignal.SIGBUS);
|
||||
print(ProcessSignal.SIGFPE);
|
||||
print(ProcessSignal.SIGKILL);
|
||||
print(ProcessSignal.SIGUSR1);
|
||||
print(ProcessSignal.SIGSEGV);
|
||||
print(ProcessSignal.SIGUSR2);
|
||||
print(ProcessSignal.SIGPIPE);
|
||||
print(ProcessSignal.SIGALRM);
|
||||
print(ProcessSignal.SIGTERM);
|
||||
print(ProcessSignal.SIGCHLD);
|
||||
print(ProcessSignal.SIGCONT);
|
||||
print(ProcessSignal.SIGSTOP);
|
||||
print(ProcessSignal.SIGTSTP);
|
||||
print(ProcessSignal.SIGTTIN);
|
||||
print(ProcessSignal.SIGTTOU);
|
||||
print(ProcessSignal.SIGURG);
|
||||
print(ProcessSignal.SIGXCPU);
|
||||
print(ProcessSignal.SIGXFSZ);
|
||||
print(ProcessSignal.SIGVTALRM);
|
||||
print(ProcessSignal.SIGPROF);
|
||||
print(ProcessSignal.SIGWINCH);
|
||||
print(ProcessSignal.SIGPOLL);
|
||||
print(ProcessSignal.SIGSYS);
|
||||
print(InternetAddressType.IP_V4);
|
||||
print(InternetAddressType.IP_V6);
|
||||
print(InternetAddressType.ANY);
|
||||
print(InternetAddress.LOOPBACK_IP_V4);
|
||||
print(InternetAddress.LOOPBACK_IP_V6);
|
||||
print(InternetAddress.ANY_IP_V4);
|
||||
print(InternetAddress.ANY_IP_V6);
|
||||
print(SocketDirection.RECEIVE);
|
||||
print(SocketDirection.SEND);
|
||||
print(SocketDirection.BOTH);
|
||||
print(SocketOption.TCP_NODELAY);
|
||||
print(RawSocketEvent.READ);
|
||||
print(RawSocketEvent.WRITE);
|
||||
print(RawSocketEvent.READ_CLOSED);
|
||||
print(RawSocketEvent.CLOSED);
|
||||
print(FileSystemEntityType.FILE);
|
||||
print(FileSystemEntityType.DIRECTORY);
|
||||
print(FileSystemEntityType.LINK);
|
||||
print(FileSystemEntityType.NOT_FOUND);
|
||||
print(FileSystemEvent.CREATE);
|
||||
print(FileSystemEvent.MODIFY);
|
||||
print(FileSystemEvent.DELETE);
|
||||
print(FileSystemEvent.MOVE);
|
||||
print(FileSystemEvent.ALL);
|
||||
print(ZLibOption.MIN_WINDOW_BITS);
|
||||
print(ZLibOption.MAX_WINDOW_BITS);
|
||||
print(ZLibOption.DEFAULT_WINDOW_BITS);
|
||||
print(ZLibOption.MIN_LEVEL);
|
||||
print(ZLibOption.MAX_LEVEL);
|
||||
print(ZLibOption.DEFAULT_LEVEL);
|
||||
print(ZLibOption.MIN_MEM_LEVEL);
|
||||
print(ZLibOption.MAX_MEM_LEVEL);
|
||||
print(ZLibOption.DEFAULT_MEM_LEVEL);
|
||||
print(ZLibOption.STRATEGY_FILTERED);
|
||||
print(ZLibOption.STRATEGY_HUFFMAN_ONLY);
|
||||
print(ZLibOption.STRATEGY_RLE);
|
||||
print(ZLibOption.STRATEGY_FIXED);
|
||||
print(ZLibOption.STRATEGY_DEFAULT);
|
||||
print(ZLIB);
|
||||
print(GZIP);
|
||||
print(FileMode.READ);
|
||||
print(FileMode.WRITE);
|
||||
print(FileMode.APPEND);
|
||||
print(FileMode.WRITE_ONLY);
|
||||
print(FileMode.WRITE_ONLY_APPEND);
|
||||
print(FileLock.SHARED);
|
||||
print(FileLock.EXCLUSIVE);
|
||||
print(FileLock.BLOCKING_SHARED);
|
||||
print(FileLock.BLOCKING_EXCLUSIVE);
|
||||
print(WebSocketStatus.NORMAL_CLOSURE);
|
||||
print(WebSocketStatus.GOING_AWAY);
|
||||
print(WebSocketStatus.PROTOCOL_ERROR);
|
||||
print(WebSocketStatus.UNSUPPORTED_DATA);
|
||||
print(WebSocketStatus.RESERVED_1004);
|
||||
print(WebSocketStatus.NO_STATUS_RECEIVED);
|
||||
print(WebSocketStatus.ABNORMAL_CLOSURE);
|
||||
print(WebSocketStatus.INVALID_FRAME_PAYLOAD_DATA);
|
||||
print(WebSocketStatus.POLICY_VIOLATION);
|
||||
print(WebSocketStatus.MESSAGE_TOO_BIG);
|
||||
print(WebSocketStatus.MISSING_MANDATORY_EXTENSION);
|
||||
print(WebSocketStatus.INTERNAL_SERVER_ERROR);
|
||||
print(WebSocketStatus.RESERVED_1015);
|
||||
print(CompressionOptions.DEFAULT);
|
||||
print(CompressionOptions.OFF);
|
||||
print(WebSocket.CONNECTING);
|
||||
print(WebSocket.OPEN);
|
||||
print(WebSocket.CLOSING);
|
||||
print(WebSocket.CLOSED);
|
||||
print(HttpHeaders.ACCEPT);
|
||||
print(HttpHeaders.ACCEPT_CHARSET);
|
||||
print(HttpHeaders.ACCEPT_ENCODING);
|
||||
print(HttpHeaders.ACCEPT_LANGUAGE);
|
||||
print(HttpHeaders.ACCEPT_RANGES);
|
||||
print(HttpHeaders.AGE);
|
||||
print(HttpHeaders.ALLOW);
|
||||
print(HttpHeaders.AUTHORIZATION);
|
||||
print(HttpHeaders.CACHE_CONTROL);
|
||||
print(HttpHeaders.CONNECTION);
|
||||
print(HttpHeaders.CONTENT_ENCODING);
|
||||
print(HttpHeaders.CONTENT_LANGUAGE);
|
||||
print(HttpHeaders.CONTENT_LENGTH);
|
||||
print(HttpHeaders.CONTENT_LOCATION);
|
||||
print(HttpHeaders.CONTENT_MD5);
|
||||
print(HttpHeaders.CONTENT_RANGE);
|
||||
print(HttpHeaders.CONTENT_TYPE);
|
||||
print(HttpHeaders.DATE);
|
||||
print(HttpHeaders.ETAG);
|
||||
print(HttpHeaders.EXPECT);
|
||||
print(HttpHeaders.EXPIRES);
|
||||
print(HttpHeaders.FROM);
|
||||
print(HttpHeaders.HOST);
|
||||
print(HttpHeaders.IF_MATCH);
|
||||
print(HttpHeaders.IF_MODIFIED_SINCE);
|
||||
print(HttpHeaders.IF_NONE_MATCH);
|
||||
print(HttpHeaders.IF_RANGE);
|
||||
print(HttpHeaders.IF_UNMODIFIED_SINCE);
|
||||
print(HttpHeaders.LAST_MODIFIED);
|
||||
print(HttpHeaders.LOCATION);
|
||||
print(HttpHeaders.MAX_FORWARDS);
|
||||
print(HttpHeaders.PRAGMA);
|
||||
print(HttpHeaders.PROXY_AUTHENTICATE);
|
||||
print(HttpHeaders.PROXY_AUTHORIZATION);
|
||||
print(HttpHeaders.RANGE);
|
||||
print(HttpHeaders.REFERER);
|
||||
print(HttpHeaders.RETRY_AFTER);
|
||||
print(HttpHeaders.SERVER);
|
||||
print(HttpHeaders.TE);
|
||||
print(HttpHeaders.TRAILER);
|
||||
print(HttpHeaders.TRANSFER_ENCODING);
|
||||
print(HttpHeaders.UPGRADE);
|
||||
print(HttpHeaders.USER_AGENT);
|
||||
print(HttpHeaders.VARY);
|
||||
print(HttpHeaders.VIA);
|
||||
print(HttpHeaders.WARNING);
|
||||
print(HttpHeaders.WWW_AUTHENTICATE);
|
||||
print(HttpHeaders.COOKIE);
|
||||
print(HttpHeaders.SET_COOKIE);
|
||||
print(HttpHeaders.GENERAL_HEADERS);
|
||||
print(HttpHeaders.ENTITY_HEADERS);
|
||||
print(HttpHeaders.RESPONSE_HEADERS);
|
||||
print(HttpHeaders.REQUEST_HEADERS);
|
||||
print(ContentType.TEXT);
|
||||
print(ContentType.HTML);
|
||||
print(ContentType.JSON);
|
||||
print(ContentType.BINARY);
|
||||
print(HttpClient.DEFAULT_HTTP_PORT);
|
||||
print(HttpClient.DEFAULT_HTTPS_PORT);
|
||||
}
|
||||
|
|
|
@ -53,4 +53,169 @@ void main() {
|
|||
print(HttpStatus.gatewayTimeout);
|
||||
print(HttpStatus.httpVersionNotSupported);
|
||||
print(HttpStatus.networkConnectTimeoutError);
|
||||
print(systemEncoding);
|
||||
print(StdioType.terminal);
|
||||
print(StdioType.pipe);
|
||||
print(StdioType.file);
|
||||
print(StdioType.other);
|
||||
print(ProcessStartMode.normal);
|
||||
print(ProcessStartMode.inheritStdio);
|
||||
print(ProcessStartMode.detached);
|
||||
print(ProcessStartMode.detachedWithStdio);
|
||||
print(ProcessSignal.sighup);
|
||||
print(ProcessSignal.sigint);
|
||||
print(ProcessSignal.sigquit);
|
||||
print(ProcessSignal.sigill);
|
||||
print(ProcessSignal.sigtrap);
|
||||
print(ProcessSignal.sigabrt);
|
||||
print(ProcessSignal.sigbus);
|
||||
print(ProcessSignal.sigfpe);
|
||||
print(ProcessSignal.sigkill);
|
||||
print(ProcessSignal.sigusr1);
|
||||
print(ProcessSignal.sigsegv);
|
||||
print(ProcessSignal.sigusr2);
|
||||
print(ProcessSignal.sigpipe);
|
||||
print(ProcessSignal.sigalrm);
|
||||
print(ProcessSignal.sigterm);
|
||||
print(ProcessSignal.sigchld);
|
||||
print(ProcessSignal.sigcont);
|
||||
print(ProcessSignal.sigstop);
|
||||
print(ProcessSignal.sigtstp);
|
||||
print(ProcessSignal.sigttin);
|
||||
print(ProcessSignal.sigttou);
|
||||
print(ProcessSignal.sigurg);
|
||||
print(ProcessSignal.sigxcpu);
|
||||
print(ProcessSignal.sigxfsz);
|
||||
print(ProcessSignal.sigvtalrm);
|
||||
print(ProcessSignal.sigprof);
|
||||
print(ProcessSignal.sigwinch);
|
||||
print(ProcessSignal.sigpoll);
|
||||
print(ProcessSignal.sigsys);
|
||||
print(InternetAddressType.IPv4);
|
||||
print(InternetAddressType.IPv6);
|
||||
print(InternetAddressType.any);
|
||||
print(InternetAddress.loopbackIPv4);
|
||||
print(InternetAddress.loopbackIPv6);
|
||||
print(InternetAddress.anyIPv4);
|
||||
print(InternetAddress.anyIPv6);
|
||||
print(SocketDirection.receive);
|
||||
print(SocketDirection.send);
|
||||
print(SocketDirection.both);
|
||||
print(SocketOption.tcpNoDelay);
|
||||
print(RawSocketEvent.read);
|
||||
print(RawSocketEvent.write);
|
||||
print(RawSocketEvent.readClosed);
|
||||
print(RawSocketEvent.closed);
|
||||
print(FileSystemEntityType.file);
|
||||
print(FileSystemEntityType.directory);
|
||||
print(FileSystemEntityType.link);
|
||||
print(FileSystemEntityType.notFound);
|
||||
print(FileSystemEvent.create);
|
||||
print(FileSystemEvent.modify);
|
||||
print(FileSystemEvent.delete);
|
||||
print(FileSystemEvent.move);
|
||||
print(FileSystemEvent.all);
|
||||
print(ZLibOption.minWindowBits);
|
||||
print(ZLibOption.maxWindowBits);
|
||||
print(ZLibOption.defaultWindowBits);
|
||||
print(ZLibOption.minLevel);
|
||||
print(ZLibOption.maxLevel);
|
||||
print(ZLibOption.defaultLevel);
|
||||
print(ZLibOption.minMemLevel);
|
||||
print(ZLibOption.maxMemLevel);
|
||||
print(ZLibOption.defaultMemLevel);
|
||||
print(ZLibOption.strategyFiltered);
|
||||
print(ZLibOption.strategyHuffmanOnly);
|
||||
print(ZLibOption.strategyRle);
|
||||
print(ZLibOption.strategyFixed);
|
||||
print(ZLibOption.strategyDefault);
|
||||
print(zlib);
|
||||
print(gzip);
|
||||
print(FileMode.read);
|
||||
print(FileMode.write);
|
||||
print(FileMode.append);
|
||||
print(FileMode.writeOnly);
|
||||
print(FileMode.writeOnlyAppend);
|
||||
print(FileLock.shared);
|
||||
print(FileLock.exclusive);
|
||||
print(FileLock.blockingShared);
|
||||
print(FileLock.blockingExclusive);
|
||||
print(WebSocketStatus.normalClosure);
|
||||
print(WebSocketStatus.goingAway);
|
||||
print(WebSocketStatus.protocolError);
|
||||
print(WebSocketStatus.unsupportedData);
|
||||
print(WebSocketStatus.reserved1004);
|
||||
print(WebSocketStatus.noStatusReceived);
|
||||
print(WebSocketStatus.abnormalClosure);
|
||||
print(WebSocketStatus.invalidFramePayloadData);
|
||||
print(WebSocketStatus.policyViolation);
|
||||
print(WebSocketStatus.messageTooBig);
|
||||
print(WebSocketStatus.missingMandatoryExtension);
|
||||
print(WebSocketStatus.internalServerError);
|
||||
print(WebSocketStatus.reserved1015);
|
||||
print(CompressionOptions.compressionDefault);
|
||||
print(CompressionOptions.compressionOff);
|
||||
print(WebSocket.connecting);
|
||||
print(WebSocket.open);
|
||||
print(WebSocket.closing);
|
||||
print(WebSocket.closed);
|
||||
print(HttpHeaders.acceptHeader);
|
||||
print(HttpHeaders.acceptCharsetHeader);
|
||||
print(HttpHeaders.acceptEncodingHeader);
|
||||
print(HttpHeaders.acceptLanguageHeader);
|
||||
print(HttpHeaders.acceptRangesHeader);
|
||||
print(HttpHeaders.ageHeader);
|
||||
print(HttpHeaders.allowHeader);
|
||||
print(HttpHeaders.authorizationHeader);
|
||||
print(HttpHeaders.cacheControlHeader);
|
||||
print(HttpHeaders.connectionHeader);
|
||||
print(HttpHeaders.contentEncodingHeader);
|
||||
print(HttpHeaders.contentLanguageHeader);
|
||||
print(HttpHeaders.contentLengthHeader);
|
||||
print(HttpHeaders.contentLocationHeader);
|
||||
print(HttpHeaders.contentMD5Header);
|
||||
print(HttpHeaders.contentRangeHeader);
|
||||
print(HttpHeaders.contentTypeHeader);
|
||||
print(HttpHeaders.dateHeader);
|
||||
print(HttpHeaders.etagHeader);
|
||||
print(HttpHeaders.expectHeader);
|
||||
print(HttpHeaders.expiresHeader);
|
||||
print(HttpHeaders.fromHeader);
|
||||
print(HttpHeaders.hostHeader);
|
||||
print(HttpHeaders.ifMatchHeader);
|
||||
print(HttpHeaders.ifModifiedSinceHeader);
|
||||
print(HttpHeaders.ifNoneMatchHeader);
|
||||
print(HttpHeaders.ifRangeHeader);
|
||||
print(HttpHeaders.ifUnmodifiedSinceHeader);
|
||||
print(HttpHeaders.lastModifiedHeader);
|
||||
print(HttpHeaders.locationHeader);
|
||||
print(HttpHeaders.maxForwardsHeader);
|
||||
print(HttpHeaders.pragmaHeader);
|
||||
print(HttpHeaders.proxyAuthenticateHeader);
|
||||
print(HttpHeaders.proxyAuthorizationHeader);
|
||||
print(HttpHeaders.rangeHeader);
|
||||
print(HttpHeaders.refererHeader);
|
||||
print(HttpHeaders.retryAfterHeader);
|
||||
print(HttpHeaders.serverHeader);
|
||||
print(HttpHeaders.teHeader);
|
||||
print(HttpHeaders.trailerHeader);
|
||||
print(HttpHeaders.transferEncodingHeader);
|
||||
print(HttpHeaders.upgradeHeader);
|
||||
print(HttpHeaders.userAgentHeader);
|
||||
print(HttpHeaders.varyHeader);
|
||||
print(HttpHeaders.viaHeader);
|
||||
print(HttpHeaders.warningHeader);
|
||||
print(HttpHeaders.wwwAuthenticateHeader);
|
||||
print(HttpHeaders.cookieHeader);
|
||||
print(HttpHeaders.setCookieHeader);
|
||||
print(HttpHeaders.generalHeaders);
|
||||
print(HttpHeaders.entityHeaders);
|
||||
print(HttpHeaders.responseHeaders);
|
||||
print(HttpHeaders.requestHeaders);
|
||||
print(ContentType.text);
|
||||
print(ContentType.html);
|
||||
print(ContentType.json);
|
||||
print(ContentType.binary);
|
||||
print(HttpClient.defaultHttpPort);
|
||||
print(HttpClient.defaultHttpsPort);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue