Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate test data and infra to null safety. #3873

Merged
merged 21 commits into from
Mar 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ class DebuggerController extends DisposableController
_programExplorerController = ProgramExplorerController(
debuggerController: this,
);
autoDisposeStreamSubscription(serviceManager.onConnectionAvailable
.listen(_handleConnectionAvailable));
autoDisposeStreamSubscription(
serviceManager.onConnectionAvailable.listen(_handleConnectionAvailable),
);
if (_service != null) {
initialize();
}
Expand Down
20 changes: 10 additions & 10 deletions packages/devtools_app/test/test_data/network_test_data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// @dart=2.9
// ignore_for_file: import_of_legacy_library_into_null_safe

import 'package:devtools_app/devtools_app.dart';
import 'package:vm_service/vm_service.dart';
Expand Down Expand Up @@ -425,7 +425,7 @@ final httpInProgressEventTrace = [
},
];

final testSocket1 = WebSocket(SocketStatistic.parse(testSocket1Json), 0);
final testSocket1 = WebSocket(SocketStatistic.parse(testSocket1Json)!, 0);
final Map<String, dynamic> testSocket1Json = {
'id': 0,
'startTime': 1000000,
Expand All @@ -439,7 +439,7 @@ final Map<String, dynamic> testSocket1Json = {
'writeBytes': 15,
};

final testSocket2 = WebSocket(SocketStatistic.parse(testSocket2Json), 0);
final testSocket2 = WebSocket(SocketStatistic.parse(testSocket2Json)!, 0);
final Map<String, dynamic> testSocket2Json = {
'id': 1,
'startTime': 3000000,
Expand All @@ -453,7 +453,7 @@ final Map<String, dynamic> testSocket2Json = {
'writeBytes': 25,
};

final testSocket3 = WebSocket(SocketStatistic.parse(testSocket3Json), 0);
final testSocket3 = WebSocket(SocketStatistic.parse(testSocket3Json)!, 0);
final Map<String, dynamic> testSocket3Json = {
'id': 0,
'startTime': 1000000,
Expand All @@ -467,7 +467,7 @@ final Map<String, dynamic> testSocket3Json = {
'writeBytes': 150,
};

final httpGetRequest = HttpProfileRequest.parse(httpGetJson);
final httpGetRequest = HttpProfileRequest.parse(httpGetJson)!;
final httpGet = DartIOHttpRequestData(0, httpGetRequest);
final Map<String, dynamic> httpGetJson = {
'type': 'HttpProfileRequest',
Expand Down Expand Up @@ -529,7 +529,7 @@ final Map<String, dynamic> httpGetJson = {
'responseBody': httpGetResponseBodyData,
};

final httpPostRequest = HttpProfileRequest.parse(httpPostJson);
final httpPostRequest = HttpProfileRequest.parse(httpPostJson)!;
final httpPost = DartIOHttpRequestData(0, httpPostRequest);
final Map<String, dynamic> httpPostJson = {
'type': 'HttpProfileRequest',
Expand Down Expand Up @@ -604,7 +604,7 @@ final httpPostResponseBodyData = [
...[123, 10, 32, 32, 34, 105, 100, 34, 58, 32, 49, 48, 49, 10, 125],
];

final httpPutRequest = HttpProfileRequest.parse(httpPutJson);
final httpPutRequest = HttpProfileRequest.parse(httpPutJson)!;
final httpPut = DartIOHttpRequestData(0, httpPutRequest);
final Map<String, dynamic> httpPutJson = {
'type': 'HttpProfileRequest',
Expand Down Expand Up @@ -679,7 +679,7 @@ final httpPutResponseBodyData = [
...[123, 10, 32, 32, 34, 105, 100, 34, 58, 32, 49, 48, 49, 10, 125],
];

final httpPatchRequest = HttpProfileRequest.parse(httpPatchJson);
final httpPatchRequest = HttpProfileRequest.parse(httpPatchJson)!;
final httpPatch = DartIOHttpRequestData(0, httpPatchRequest);
final Map<String, dynamic> httpPatchJson = {
'type': 'HttpProfileRequest',
Expand Down Expand Up @@ -757,7 +757,7 @@ final httpPatchResponseBodyData = [
...[10, 125],
];

final httpGetWithErrorRequest = HttpProfileRequest.parse(httpGetWithErrorJson);
final httpGetWithErrorRequest = HttpProfileRequest.parse(httpGetWithErrorJson)!;
final httpGetWithError = DartIOHttpRequestData(0, httpGetWithErrorRequest);
final Map<String, dynamic> httpGetWithErrorJson = {
'type': '@HttpProfileRequest',
Expand All @@ -773,7 +773,7 @@ final Map<String, dynamic> httpGetWithErrorJson = {
},
};

final httpWsHandshakeRequest = HttpProfileRequest.parse(httpWsHandshakeJson);
final httpWsHandshakeRequest = HttpProfileRequest.parse(httpWsHandshakeJson)!;
final httpWsHandshake = DartIOHttpRequestData(0, httpWsHandshakeRequest);
final Map<String, dynamic> httpWsHandshakeJson = {
'type': 'HttpProfileRequest',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// @dart=2.9
// ignore_for_file: import_of_legacy_library_into_null_safe

import 'dart:convert';

Expand Down
Loading