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

Side by Side Diff: pkg/telemetry/test/telemetry_test.dart

Issue 2954733002: Add initial version of analytics and crash reporting package. (Closed)
Patch Set: updates 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 unified diff | Download patch
« no previous file with comments | « pkg/telemetry/test/crash_reporting_test.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 import 'dart:io';
6
7 import 'package:telemetry/telemetry.dart';
8 import 'package:test/test.dart';
9 import 'package:usage/usage.dart';
10
11 void main() {
12 group('telemetry', () {
13 test('getDartStorageDirectory', () {
14 Directory dir = getDartStorageDirectory();
15 expect(dir, isNotNull);
16 });
17
18 test('getDartVersion', () {
19 expect(getDartVersion(), isNotNull);
20 });
21
22 test('createAnalyticsInstance', () {
23 Analytics analytics = createAnalyticsInstance('UA-0', 'test-app');
24 expect(analytics, isNotNull);
25 expect(analytics.trackingId, 'UA-0');
26 expect(analytics.getSessionValue('an'), 'test-app');
27 expect(analytics.getSessionValue('av'), isNotNull);
28 expect(analytics.clientId, isNotNull);
29 });
30 });
31 }
OLDNEW
« no previous file with comments | « pkg/telemetry/test/crash_reporting_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698