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

Side by Side Diff: utils/tests/pub/pub_lish_test.dart

Issue 11867029: Clean up a few static warnings. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « utils/tests/pub/oauth2_test.dart ('k') | utils/tests/pub/pub_uploader_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 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. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library pub_lish_test; 5 library pub_lish_test;
6 6
7 import 'dart:io'; 7 import 'dart:io';
8 import 'dart:json' as json; 8 import 'dart:json' as json;
9 9
10 import 'test_pub.dart'; 10 import 'test_pub.dart';
11 import 'test_pub.dart';
12 import '../../../pkg/unittest/lib/unittest.dart'; 11 import '../../../pkg/unittest/lib/unittest.dart';
13 import '../../pub/io.dart'; 12 import '../../pub/io.dart';
14 13
15 void handleUploadForm(ScheduledServer server, [Map body]) { 14 void handleUploadForm(ScheduledServer server, [Map body]) {
16 server.handle('GET', '/packages/versions/new.json', (request, response) { 15 server.handle('GET', '/packages/versions/new.json', (request, response) {
17 return server.url.then((url) { 16 return server.url.then((url) {
18 expect(request.headers.value('authorization'), 17 expect(request.headers.value('authorization'),
19 equals('Bearer access token')); 18 equals('Bearer access token'));
20 19
21 if (body == null) { 20 if (body == null) {
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 server.handle('GET', '/create', (request, response) { 363 server.handle('GET', '/create', (request, response) {
365 response.outputStream.writeString(json.stringify(body)); 364 response.outputStream.writeString(json.stringify(body));
366 response.outputStream.close(); 365 response.outputStream.close();
367 }); 366 });
368 367
369 expectLater(pub.nextErrLine(), equals('Invalid server response:')); 368 expectLater(pub.nextErrLine(), equals('Invalid server response:'));
370 expectLater(pub.nextErrLine(), equals(json.stringify(body))); 369 expectLater(pub.nextErrLine(), equals(json.stringify(body)));
371 pub.shouldExit(1); 370 pub.shouldExit(1);
372 }); 371 });
373 } 372 }
OLDNEW
« no previous file with comments | « utils/tests/pub/oauth2_test.dart ('k') | utils/tests/pub/pub_uploader_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698