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

Unified Diff: pkg/analyzer/test/src/dart/analysis/driver_test.dart

Issue 2885203002: Remove unused contentHash from results (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/lib/src/dart/analysis/driver.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/src/dart/analysis/driver_test.dart
diff --git a/pkg/analyzer/test/src/dart/analysis/driver_test.dart b/pkg/analyzer/test/src/dart/analysis/driver_test.dart
index 1205de09e9bce5a2d5a84c770ca1e7d2270f6a9e..8985c013873e4675cfc84b166d86a00cc40a8f39 100644
--- a/pkg/analyzer/test/src/dart/analysis/driver_test.dart
+++ b/pkg/analyzer/test/src/dart/analysis/driver_test.dart
@@ -2,10 +2,7 @@
// 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.
-library analyzer.test.driver;
-
import 'dart:async';
-import 'dart:convert';
import 'package:analyzer/dart/ast/ast.dart';
import 'package:analyzer/dart/ast/standard_resolution_map.dart';
@@ -27,8 +24,6 @@ import 'package:analyzer/src/generated/sdk.dart';
import 'package:analyzer/src/generated/source.dart';
import 'package:analyzer/src/summary/idl.dart';
import 'package:analyzer/src/summary/package_bundle_reader.dart';
-import 'package:convert/convert.dart';
-import 'package:crypto/crypto.dart';
import 'package:front_end/src/base/performace_logger.dart';
import 'package:front_end/src/incremental/byte_store.dart';
import 'package:test/test.dart';
@@ -1094,7 +1089,6 @@ bbb() {}
ErrorsResult result = await driver.getErrors(testFile);
expect(result.path, testFile);
expect(result.uri.toString(), 'package:test/test.dart');
- expect(result.contentHash, _md5(content));
expect(result.errors, hasLength(1));
}
@@ -1238,7 +1232,6 @@ class Test {}
expect(result.uri.toString(), 'package:test/test.dart');
expect(result.exists, isTrue);
expect(result.content, content);
- expect(result.contentHash, _md5(content));
expect(result.unit, isNotNull);
expect(result.errors, hasLength(0));
@@ -2498,7 +2491,6 @@ class F extends X {}
expect(result.path, testFile);
expect(result.uri.toString(), 'package:test/test.dart');
expect(result.content, content);
- expect(result.contentHash, _md5(content));
expect(result.unit, isNotNull);
expect(result.errors, hasLength(0));
@@ -2538,7 +2530,6 @@ class F extends X {}
expect(result.path, testFile);
expect(result.uri.toString(), 'package:test/test.dart');
expect(result.content, isNull);
- expect(result.contentHash, _md5(content));
expect(result.unit, isNull);
expect(result.errors, hasLength(0));
}
@@ -2708,10 +2699,6 @@ class F extends X {}
* Return the [provider] specific path for the given Posix [path].
*/
String _p(String path) => provider.convertPath(path);
-
- static String _md5(String content) {
- return hex.encode(md5.convert(UTF8.encode(content)).bytes);
- }
}
@reflectiveTest
« no previous file with comments | « pkg/analyzer/lib/src/dart/analysis/driver.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698