625bfe5cae
Change-Id: I1d06861b5838a12b807d47cfbb53b0537a68d52f Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/194205 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
29 lines
913 B
Dart
29 lines
913 B
Dart
// Copyright (c) 2017, 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 'package:telemetry/telemetry.dart';
|
|
import 'package:test/test.dart';
|
|
|
|
void main() {
|
|
group('telemetry', () {
|
|
test('getDartStorageDirectory', () {
|
|
var dir = getDartStorageDirectory();
|
|
expect(dir, isNotNull);
|
|
});
|
|
|
|
test('getDartVersion', () {
|
|
expect(getDartVersion(), isNotNull);
|
|
});
|
|
|
|
test('createAnalyticsInstance', () {
|
|
Analytics analytics = createAnalyticsInstance('UA-0', 'test-app');
|
|
expect(analytics, isNotNull);
|
|
expect(analytics.trackingId, 'UA-0');
|
|
expect(analytics.getSessionValue('an'), 'test-app');
|
|
expect(analytics.getSessionValue('av'), isNotNull);
|
|
expect(analytics.clientId, isNotNull);
|
|
});
|
|
});
|
|
}
|