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

Unified Diff: pkg/telemetry/test/crash_reporting_test.dart

Issue 2963323002: Add analytics to analyzer-cli and analysis server. (Closed)
Patch Set: update from review comments Created 3 years, 5 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/telemetry/pubspec.yaml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/telemetry/test/crash_reporting_test.dart
diff --git a/pkg/telemetry/test/crash_reporting_test.dart b/pkg/telemetry/test/crash_reporting_test.dart
index a6241216ff012c47d200faec41951d6c5a587803..1a877487e317f82d9c7b9a3b0e59f8b4bf3b050d 100644
--- a/pkg/telemetry/test/crash_reporting_test.dart
+++ b/pkg/telemetry/test/crash_reporting_test.dart
@@ -24,9 +24,10 @@ void main() {
});
test('CrashReportSender', () async {
- AnalyticsMock analytics = new AnalyticsMock();
- CrashReportSender sender =
- new CrashReportSender(analytics, httpClient: mockClient);
+ AnalyticsMock analytics = new AnalyticsMock()..enabled = false;
+ CrashReportSender sender = new CrashReportSender(
+ analytics.trackingId, analytics,
+ httpClient: mockClient);
await sender.sendReport('test-error', stackTrace: StackTrace.current);
« no previous file with comments | « pkg/telemetry/pubspec.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698