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

Side by Side Diff: services/dart/dart_apptests/io_internet_address_apptests.dart

Issue 1132063007: Rationalize Dart mojo and sky package structure (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 library io_internet_address_apptests; 5 library io_internet_address_apptests;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:mojo.io'; 8 import 'dart:mojo.io';
9 9
10 import 'package:apptest/apptest.dart'; 10 import 'package:apptest/apptest.dart';
11 import 'package:mojo/public/dart/application.dart'; 11 import 'package:mojo/application.dart';
12 import 'package:mojo/public/dart/bindings.dart'; 12 import 'package:mojo/bindings.dart';
13 import 'package:mojo/public/dart/core.dart'; 13 import 'package:mojo/core.dart';
14 14
15 tests(Application application, String url) { 15 tests(Application application, String url) {
16 group('InternetAddress Apptests', () { 16 group('InternetAddress Apptests', () {
17 test('Parse IPv4', () async { 17 test('Parse IPv4', () async {
18 var localhost = new InternetAddress('127.0.0.1'); 18 var localhost = new InternetAddress('127.0.0.1');
19 expect(localhost, equals(InternetAddress.LOOPBACK_IP_V4)); 19 expect(localhost, equals(InternetAddress.LOOPBACK_IP_V4));
20 }); 20 });
21 test('Parse IPv6', () async { 21 test('Parse IPv6', () async {
22 var localhost = new InternetAddress('0:0:0:0:0:0:0:1'); 22 var localhost = new InternetAddress('0:0:0:0:0:0:0:1');
23 expect(localhost, equals(InternetAddress.LOOPBACK_IP_V6)); 23 expect(localhost, equals(InternetAddress.LOOPBACK_IP_V6));
24 }); 24 });
25 }); 25 });
26 } 26 }
OLDNEW
« no previous file with comments | « services/dart/dart_apptests/io_http_apptests.dart ('k') | services/dart/dart_apptests/pingpong_apptests.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698