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

Issue 11362097: Add a mock HTTP client class. (Closed)

Created:
8 years, 1 month ago by nweiz
Modified:
8 years, 1 month ago
Reviewers:
Bob Nystrom
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Add a mock HTTP client class. Committed: https://code.google.com/p/dart/source/detail?r=14546

Patch Set 1 #

Total comments: 11

Patch Set 2 : Code review changes #

Patch Set 3 : Add http/testing.dart #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+161 lines, -0 lines) Patch
A pkg/http/lib/src/mock_client.dart View 1 1 chunk +76 lines, -0 lines 0 comments Download
A pkg/http/lib/testing.dart View 1 2 1 chunk +27 lines, -0 lines 2 comments Download
A pkg/http/test/mock_client_test.dart View 1 1 chunk +58 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
nweiz
8 years, 1 month ago (2012-11-05 19:58:06 UTC) #1
Bob Nystrom
https://codereview.chromium.org/11362097/diff/1/pkg/http/lib/http.dart File pkg/http/lib/http.dart (right): https://codereview.chromium.org/11362097/diff/1/pkg/http/lib/http.dart#newcode69 pkg/http/lib/http.dart:69: export 'src/mock_client.dart'; I like this class a lot, but ...
8 years, 1 month ago (2012-11-05 20:36:04 UTC) #2
nweiz
https://codereview.chromium.org/11362097/diff/1/pkg/http/lib/http.dart File pkg/http/lib/http.dart (right): https://codereview.chromium.org/11362097/diff/1/pkg/http/lib/http.dart#newcode69 pkg/http/lib/http.dart:69: export 'src/mock_client.dart'; On 2012/11/05 20:36:04, Bob Nystrom wrote: > ...
8 years, 1 month ago (2012-11-05 22:35:15 UTC) #3
Bob Nystrom
https://codereview.chromium.org/11362097/diff/1/pkg/http/lib/http.dart File pkg/http/lib/http.dart (right): https://codereview.chromium.org/11362097/diff/1/pkg/http/lib/http.dart#newcode69 pkg/http/lib/http.dart:69: export 'src/mock_client.dart'; On 2012/11/05 22:35:16, nweiz wrote: > On ...
8 years, 1 month ago (2012-11-05 23:01:31 UTC) #4
Bob Nystrom
One question. Either way, LGTM! https://codereview.chromium.org/11362097/diff/7001/pkg/http/lib/testing.dart File pkg/http/lib/testing.dart (right): https://codereview.chromium.org/11362097/diff/7001/pkg/http/lib/testing.dart#newcode27 pkg/http/lib/testing.dart:27: export 'src/mock_client.dart'; Is there ...
8 years, 1 month ago (2012-11-05 23:25:15 UTC) #5
nweiz
https://codereview.chromium.org/11362097/diff/7001/pkg/http/lib/testing.dart File pkg/http/lib/testing.dart (right): https://codereview.chromium.org/11362097/diff/7001/pkg/http/lib/testing.dart#newcode27 pkg/http/lib/testing.dart:27: export 'src/mock_client.dart'; On 2012/11/05 23:25:15, Bob Nystrom wrote: > ...
8 years, 1 month ago (2012-11-05 23:40:15 UTC) #6
Bob Nystrom
8 years, 1 month ago (2012-11-05 23:44:55 UTC) #7
On 2012/11/05 23:40:15, nweiz wrote:
> https://codereview.chromium.org/11362097/diff/7001/pkg/http/lib/testing.dart
> File pkg/http/lib/testing.dart (right):
> 
>
https://codereview.chromium.org/11362097/diff/7001/pkg/http/lib/testing.dart#...
> pkg/http/lib/testing.dart:27: export 'src/mock_client.dart';
> On 2012/11/05 23:25:15, Bob Nystrom wrote:
> > Is there any reason you're leaving the source there instead of just moving
it
> > here?
> 
> It indicates that this library isn't intended to just be the MockClient. In
the
> future I'll probably add other testing utilities, and they'll go here as well.

Perfect then. I was thinking something similar, hence suggesting testing.dart
instead of mock.dart or something like that.

Powered by Google App Engine
This is Rietveld 408576698