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

Unified Diff: generated/googleapis_beta/test/common/common_internal_test.dart

Issue 595873002: Api roll 1: 2014-09-23 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 6 years, 3 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
Index: generated/googleapis_beta/test/common/common_internal_test.dart
diff --git a/generated/googleapis_beta/test/common/common_internal_test.dart b/generated/googleapis_beta/test/common/common_internal_test.dart
index a8fc299c3b8e62b0c7c9ab6bacd293d4218e739b..acf53f2b0830d0bc5c0486c81f8a44c2b4c68ac1 100644
--- a/generated/googleapis_beta/test/common/common_internal_test.dart
+++ b/generated/googleapis_beta/test/common/common_internal_test.dart
@@ -7,6 +7,7 @@ import 'package:googleapis_beta/common/common.dart';
import 'package:googleapis_beta/src/common_internal.dart';
import 'package:http/http.dart' as http;
import 'package:unittest/unittest.dart';
+
class HttpServerMock extends http.BaseClient {
Function _callback;
bool _expectJson;
@@ -307,7 +308,7 @@ main() {
setUp(() {
httpMock = new HttpServerMock();
rootUrl = 'http://example.com/';
- basePath = '/base/';
+ basePath = 'base/';
requester = new ApiRequester(httpMock, rootUrl, basePath);
});
@@ -731,6 +732,17 @@ main() {
1024*1024], false);
});
+ test('length-big-block-parts-non-divisible', () {
+ runTest(1, 1024 * 1024 + 1,
+ [1,
+ 256*1024-1,
+ 256*1024,
+ 256*1024+1,
+ 1024*1024-1,
+ 1024*1024,
+ 1024*1024+1], false);
+ });
+
test('stream-small-block', () {
runTest(1, 10, [10], true);
});

Powered by Google App Engine
This is Rietveld 408576698