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

Issue 1387163002: Add Resource package. (Closed)

Created:
5 years, 2 months ago by Lasse Reichstein Nielsen
Modified:
4 years, 11 months ago
Reviewers:
Bob Nystrom, floitsch
CC:
mit
Base URL:
https://github.com/dart-lang/resource.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add Resource package. R=floitsch@google.com Committed: 527b11d472abbdc4ee3d08749f5685e2265f3465

Patch Set 1 #

Total comments: 22

Patch Set 2 : Updated. #

Patch Set 3 : Add tests. Fix bugs found by tests. #

Patch Set 4 : Final tweaks. #

Total comments: 10

Patch Set 5 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+694 lines, -296 lines) Patch
A .gitignore View 1 chunk +9 lines, -0 lines 0 comments Download
A .test_config View 1 chunk +3 lines, -0 lines 0 comments Download
A .travis.yml View 1 chunk +15 lines, -0 lines 0 comments Download
A AUTHORS View 1 chunk +6 lines, -0 lines 0 comments Download
A CHANGELOG.md View 1 chunk +5 lines, -0 lines 0 comments Download
A CONTRIBUTING.md View 1 chunk +33 lines, -0 lines 0 comments Download
A LICENSE View 1 chunk +26 lines, -0 lines 0 comments Download
A README.md View 1 chunk +9 lines, -0 lines 0 comments Download
M lib/resource.dart View 1 1 chunk +11 lines, -12 lines 0 comments Download
M lib/src/io.dart View 1 2 3 1 chunk +90 lines, -59 lines 0 comments Download
A lib/src/loader.dart View 1 2 3 4 1 chunk +92 lines, -0 lines 0 comments Download
M lib/src/resource.dart View 1 2 3 4 1 chunk +87 lines, -218 lines 0 comments Download
M pubspec.yaml View 1 1 chunk +14 lines, -7 lines 0 comments Download
A test/loader_data_test.dart View 1 2 3 1 chunk +51 lines, -0 lines 0 comments Download
A test/loader_file_test.dart View 1 2 3 1 chunk +65 lines, -0 lines 0 comments Download
A test/loader_http_test.dart View 1 2 3 1 chunk +92 lines, -0 lines 0 comments Download
A test/resource_test.dart View 1 2 3 1 chunk +70 lines, -0 lines 0 comments Download
A tool/travis.sh View 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (3 generated)
Lasse Reichstein Nielsen
I still need to find a good way to test dart:io specific functionality.
5 years, 2 months ago (2015-10-06 12:45:23 UTC) #2
Lasse Reichstein Nielsen
5 years, 2 months ago (2015-10-08 08:51:17 UTC) #4
Bob Nystrom
What do you think of changing the package name to "resources"? One mistake I've made ...
5 years, 2 months ago (2015-10-08 16:48:34 UTC) #5
Lasse Reichstein Nielsen
https://codereview.chromium.org/1387163002/diff/1/.travis.yml File .travis.yml (right): https://codereview.chromium.org/1387163002/diff/1/.travis.yml#newcode7 .travis.yml:7: sudo: false Ack. I was copying files blindly from ...
5 years, 2 months ago (2015-10-08 17:20:54 UTC) #6
Bob Nystrom
https://codereview.chromium.org/1387163002/diff/1/lib/src/resource.dart File lib/src/resource.dart (right): https://codereview.chromium.org/1387163002/diff/1/lib/src/resource.dart#newcode49 lib/src/resource.dart:49: Resource resource(Uri uri, { ResourceLoader loader }) { On ...
5 years, 2 months ago (2015-10-08 17:32:20 UTC) #7
Lasse Reichstein Nielsen
Ping Florian
5 years, 2 months ago (2015-10-13 07:41:55 UTC) #8
floitsch
LGTM (once Bob's comments have been addressed). https://codereview.chromium.org/1387163002/diff/1/CONTRIBUTING.md File CONTRIBUTING.md (right): https://codereview.chromium.org/1387163002/diff/1/CONTRIBUTING.md#newcode12 CONTRIBUTING.md:12: the CLA ...
5 years, 2 months ago (2015-10-13 12:47:50 UTC) #9
ahe
https://codereview.chromium.org/1387163002/diff/1/pubspec.yaml File pubspec.yaml (right): https://codereview.chromium.org/1387163002/diff/1/pubspec.yaml#newcode5 pubspec.yaml:5: homepage: https://github.com/dart-lang/resource This URL is broken.
5 years, 2 months ago (2015-10-14 12:38:59 UTC) #10
ahe
https://codereview.chromium.org/1387163002/diff/1/README.md File README.md (right): https://codereview.chromium.org/1387163002/diff/1/README.md#newcode9 README.md:9: [tracker]: https://github.com/dart-lang/resource/issues This URL is broken.
5 years, 2 months ago (2015-10-14 12:39:29 UTC) #11
Lasse Reichstein Nielsen
On 2015/10/14 12:39:29, ahe wrote: > https://codereview.chromium.org/1387163002/diff/1/README.md#newcode9 > README.md:9: [tracker]: https://github.com/dart-lang/resource/issues > This URL is ...
5 years, 2 months ago (2015-10-14 12:43:28 UTC) #12
Lasse Reichstein Nielsen
On 2015/10/14 12:43:28, Lasse Reichstein Nielsen wrote: > Repository is now public. Repository is now ...
5 years, 1 month ago (2015-10-27 08:35:15 UTC) #13
Lasse Reichstein Nielsen
Updated, PTAL.
4 years, 11 months ago (2016-01-14 10:43:18 UTC) #14
floitsch
LGTM. https://codereview.chromium.org/1387163002/diff/60001/lib/src/io.dart File lib/src/io.dart (right): https://codereview.chromium.org/1387163002/diff/60001/lib/src/io.dart#newcode71 lib/src/io.dart:71: Uint8Buffer buffer = new Uint8Buffer(length); might as well ...
4 years, 11 months ago (2016-01-14 15:11:04 UTC) #15
Lasse Reichstein Nielsen
Committed patchset #5 (id:80001) manually as 527b11d472abbdc4ee3d08749f5685e2265f3465 (presubmit successful).
4 years, 11 months ago (2016-01-15 09:32:25 UTC) #17
Lasse Reichstein Nielsen
4 years, 11 months ago (2016-01-15 09:40:02 UTC) #18
Message was sent while issue was closed.
https://codereview.chromium.org/1387163002/diff/60001/lib/src/io.dart
File lib/src/io.dart (right):

https://codereview.chromium.org/1387163002/diff/60001/lib/src/io.dart#newcode71
lib/src/io.dart:71: Uint8Buffer buffer = new Uint8Buffer(length);
On 2016/01/14 15:11:04, floitsch wrote:
> might as well make this a var.

Done.

https://codereview.chromium.org/1387163002/diff/60001/lib/src/loader.dart
File lib/src/loader.dart (right):

https://codereview.chromium.org/1387163002/diff/60001/lib/src/loader.dart#new...
lib/src/loader.dart:14: /// An implementation decides which URI schemes it
supports.
On 2016/01/14 15:11:04, floitsch wrote:
> Implementations of this interface decide which URI schemes they support.

Done.

https://codereview.chromium.org/1387163002/diff/60001/lib/src/loader.dart#new...
lib/src/loader.dart:23: /// (For example, file: URIs are not supported in the
browser).
On 2016/01/14 15:11:04, floitsch wrote:
> You need a new line after * package.
> Otherwise the remaining text is part of the last bullet point.

Done.

https://codereview.chromium.org/1387163002/diff/60001/lib/src/resource.dart
File lib/src/resource.dart (right):

https://codereview.chromium.org/1387163002/diff/60001/lib/src/resource.dart#n...
lib/src/resource.dart:44: /// Read the resource content as a stream of bytes.
On 2016/01/14 15:11:04, floitsch wrote:
> Reads

Done.

https://codereview.chromium.org/1387163002/diff/60001/lib/src/resource.dart#n...
lib/src/resource.dart:47: /// Read the resource content as a single list of
bytes.
On 2016/01/14 15:11:04, floitsch wrote:
> ditto.

Done.

Powered by Google App Engine
This is Rietveld 408576698