whesse@google.com
43c13f4ed4
dart:io | Revert addition of Link class, because it conflicts with a Link class in dart2js.
...
BUG=
Review URL: https://codereview.chromium.org//12555005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19777 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-11 11:59:57 +00:00
whesse@google.com
31c6f8d3e5
dart:io | Add Link class, as sibling to File and Directory.
...
BUG=
Review URL: https://codereview.chromium.org//12691002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19772 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-11 10:34:52 +00:00
floitsch@google.com
5dc8107c53
Revert "Remove Expect from core library."
...
This reverts commit 19755.
Review URL: https://codereview.chromium.org//12743005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19756 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-09 03:19:07 +00:00
floitsch@google.com
12dbd2fd70
Remove Expect from core library.
...
Review URL: https://codereview.chromium.org//12212016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19755 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-09 02:40:37 +00:00
asiva@google.com
bd664ca3e0
Add dart:typeddata to the SDK and add an unimplemented patch file for dart2js.
...
Review URL: https://codereview.chromium.org//12668004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19709 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-08 19:02:31 +00:00
floitsch@google.com
dd48256fe5
Remove deprecated StringBuffer.add, addAll and addCharCode.
...
Review URL: https://codereview.chromium.org//12473003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19690 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-08 13:07:18 +00:00
ajohnsen@google.com
a49c2fc0f8
Re-enable web_socket_test.
...
BUG=https://code.google.com/p/dart/issues/detail?id=8943
Review URL: https://codereview.chromium.org//12688003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19688 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-08 12:10:48 +00:00
lrn@google.com
bead146749
Renamed StreamSink to EventSink. Renamed signalError to addError.
...
Review URL: https://codereview.chromium.org//12610006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19683 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-08 11:31:19 +00:00
whesse@google.com
35dbc70542
dart:io | Implement FileSystemEntity.typeSync on Windows, to identify symbolic links and junctions.
...
BUG=dartbug.com/8935
Review URL: https://codereview.chromium.org//12617002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19681 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-08 10:36:08 +00:00
sgjesse@google.com
b6096848b1
Make IOSink implement StringSink
...
Besides adding the StringSink methods I also added writeBytes and
deprecated both add and addString.
To handle the encoding of strings the IOSike has an encoding
property. This property is mutable in situation when it makes sense to
change encoding of what is written. The exception here is for HTTP
where the encoding is determined from the header and the encoding
cannot be changed.
R=ajohnsen@google.com , ager@google.com , nweiz@google.com
BUG=
Review URL: https://codereview.chromium.org//12504006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19676 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-08 10:06:28 +00:00
asiva@google.com
3f14a14ee7
Implement 'dart:typeddata' directly in the VM instead of using 'dart:scalarlist'
...
Review URL: https://codereview.chromium.org//12544015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19656 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-07 21:50:33 +00:00
floitsch@google.com
a0b4850a43
Remove deprecated Date class.
...
Review URL: https://codereview.chromium.org//12542003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19617 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-07 12:38:20 +00:00
sgjesse@google.com
68d19a9f2d
Fix handling to responses to HEAD requests
...
The HTTP parser did not handle requests to HEAD requests if chunked
transfer encoding is used by in the response. The check for chunked
encoding was done before checking for a response to a head request.
R=ajohnsen@google.com
BUG=
Review URL: https://codereview.chromium.org//12595004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19612 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-07 11:44:49 +00:00
whesse@google.com
ec7e4e5100
dart:io | Add FileSystemEntity.typeSync to test for symbolic links.
...
BUG=dartbug.com/8935
Review URL: https://codereview.chromium.org//12533008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19608 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-07 11:18:38 +00:00
sgjesse@google.com
ff47888a0d
Make instances of HeaderValue and ContentType immutable
...
Their parameters map is still mutable though.
R=ajohnsen@google.com
BUG=
Review URL: https://codereview.chromium.org//12440002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19598 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-07 07:25:56 +00:00
ajohnsen@google.com
ed3d5eefe7
Fix zlib test on Windows.
...
BUG=
Review URL: https://codereview.chromium.org//12533003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19556 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-06 12:46:44 +00:00
ajohnsen@google.com
28daa7ba59
Introduce ZLibInflater and ZLibDeflater to dart:io.
...
BUG=
Review URL: https://codereview.chromium.org//12451004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19551 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-06 11:38:41 +00:00
whesse@google.com
c1cd9d8ef0
dart:io | Fix error in raw_server_socket_cancel_test.
...
BUG=dartbug.com/8675
Review URL: https://codereview.chromium.org//12431008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19546 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-06 10:20:21 +00:00
ricow@google.com
33a29888dd
Mark io/web_socket_test as flaky
...
Filed issue 8943
Review URL: https://codereview.chromium.org//12409007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19535 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-06 07:13:31 +00:00
asiva@google.com
1c2d7f0ef6
Mark typeddata tests as failing (issue 8933).
...
Review URL: https://codereview.chromium.org//12500002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19530 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-06 00:01:26 +00:00
whesse@google.com
b3ce74ae8f
dart:io | Restore suppression for flaky raw_server_socket_cancel_test.
...
BUG=dartbug.com/8675
Review URL: https://codereview.chromium.org//12442003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19473 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-05 12:58:29 +00:00
whesse@google.com
a1ac92c064
dart:io | Improve raw_server_socket_cancel_test to not leave client sockets hanging.
...
BUG=dartbug.com/8675
Review URL: https://codereview.chromium.org//12438003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19466 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-05 12:07:38 +00:00
ajohnsen@google.com
89349ff065
Add some Websocket tests.
...
BUG=
Review URL: https://codereview.chromium.org//12428006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19462 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-05 11:31:26 +00:00
ajohnsen@google.com
d534f5da96
Don't run web_socket_protocol_processor_test with dart2js.
...
BUG=
Review URL: https://codereview.chromium.org//12429004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19458 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-05 10:07:09 +00:00
ajohnsen@google.com
f951aa81c1
Fix web_socket_protocol_processor_test to pass in checked mode.
...
BUG=
Review URL: https://codereview.chromium.org//12435002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19457 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-05 09:54:52 +00:00
ajohnsen@google.com
ab0ca3a02f
Improve web-socket implementation by using making _WebSocketProtocolProcessor a StreamTransformer.
...
BUG=
Review URL: https://codereview.chromium.org//12387085
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19454 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-05 09:40:53 +00:00
ricow@google.com
8fcb5f49c4
Mark standalone/io/raw_server_socket_cancel_test flaky on all platforms, not just windows.
...
It timed out here:
http://build.chromium.org/p/client.dart/builders/vm-linux-release/builds/12973/steps/tests/logs/stdio
Review URL: https://codereview.chromium.org//12409004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19450 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-05 07:24:53 +00:00
asiva@google.com
c41410360f
dart:typeddat is not supported yet by dartc, skip all the tests that import this library.
...
Review URL: https://codereview.chromium.org//12390071
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19430 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-04 22:37:58 +00:00
asiva@google.com
97f6dee777
First step towards implementing dart:typeddata library.
...
Review URL: https://codereview.chromium.org//12313088
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19427 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-04 22:11:45 +00:00
whesse@google.com
8929d6c037
dart:io | Fix a crash when read was called on a closed socket on Windows.
...
BUG=dartbug.com/8798
Review URL: https://codereview.chromium.org//12395017
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19396 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-04 16:16:18 +00:00
sgjesse@google.com
b7183dc258
Add individual HTTP request to web socket upgrade support
...
Added the static method "upgrade" on the WebSocketTransformer class to
allow upgrading individual HTTPRequest objects to web scoket
connections.
R=ajohnsen@google.com
BUG=
Review URL: https://codereview.chromium.org//12400002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19395 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-04 15:50:01 +00:00
sgjesse@google.com
d6845c65ad
Change the web socket interface
...
The stream of events from a web socket is now the actual messages
(text as String and binary as List<int>) instead of instances of
MessageEvent. The CloseEvent is reposted as onDone on the stream with
the close code and close reason available as properties on the web
socket object.
Next step is to make the web socket implement IOSink.
R=ajohnsen@google.com
BUG=
Review URL: https://codereview.chromium.org//12383051
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19376 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-04 10:40:03 +00:00
ajohnsen@google.com
bd38a2bbbe
Support canceling an incoming message, while the other end will be notified (by write-error from the socket).
...
BUG=https://code.google.com/p/dart/issues/detail?id=4652
Review URL: https://codereview.chromium.org//12385048
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19373 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-04 10:22:20 +00:00
sgjesse@google.com
00d82b784a
Update status file
...
TBR=whesse@google.com
BUG=
Review URL: https://codereview.chromium.org//12385077
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19367 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-04 08:06:19 +00:00
ricow@google.com
ddbbe1b12e
Mark standalone/io/raw_socket_tests as flaky
...
Updated issue 8675
Review URL: https://codereview.chromium.org//12389072
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19365 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-04 07:27:00 +00:00
whesse@google.com
360da64f5e
dart:io | Add suppression for raw_secure_server_socket_intense_test on Windows.
...
BUG=dartbug.com/8798
Review URL: https://codereview.chromium.org//12379046
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19320 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-01 16:30:32 +00:00
ajohnsen@google.com
ba01a8ecfc
Fix socket so we stop the consumer before we close the socket - this makes sure we socket-close future don't result in a socket write.
...
BUG=https://code.google.com/p/dart/issues/detail?id=8874
Review URL: https://codereview.chromium.org//12393010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19316 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-01 14:20:38 +00:00
whesse@google.com
1b2e0aeeaf
dart:io | Port secure_server_client_certificate_test to IO v2.
...
BUG=
Review URL: https://codereview.chromium.org//12383049
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19312 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-01 13:47:18 +00:00
ajohnsen@google.com
b675e47aa0
Remane io_stream_consumer.dart to io_sink and move out all implementation from IOSink to _IOSinkImpl.
...
BUG=https://code.google.com/p/dart/issues/detail?id=8873
Review URL: https://codereview.chromium.org//12389050
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19311 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-01 13:33:19 +00:00
sgjesse@google.com
7b796611ad
Update status file
...
TBR=ajohnsen@google.com
BUG=
Review URL: https://codereview.chromium.org//12389051
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19307 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-01 13:11:04 +00:00
sgjesse@google.com
7aee440498
Enable most dart:io tests on Windows
...
The recent flaky logs show no failures.
R=ajohnsen@google.com
BUG=numerous
Review URL: https://codereview.chromium.org//12387040
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19306 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-01 12:48:26 +00:00
sgjesse@google.com
9021945997
Improve support for HTTP 1.0 clients
...
Fixed a number of issues related to HTTP 1.0 clients.
Added more HTTP 1.0 tests.
R=ajohnsen@google.com
BUG=https://code.google.com/p/dart/issues/detail?id=8866
Review URL: https://codereview.chromium.org//12383048
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19303 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-01 12:34:27 +00:00
ager@google.com
7b5e766190
Add missing certificate getter on HttpClientResponse and add a regression test.
...
Also cleaned up some internal type annotations to avoid type warnings.
R=whesse@google.com ,sgjesse@google.com
BUG=
Review URL: https://codereview.chromium.org//12378040
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19302 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-01 12:32:49 +00:00
ajohnsen@google.com
9a01a09e4c
Don't close the server until we have received the error.
...
This avoids a scenerio where server.close would destroy the socket before we would receive the error, if the validator stream is paused from the socket.
BUG=https://code.google.com/p/dart/issues/detail?id=8865
Review URL: https://codereview.chromium.org//12385041
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19299 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-01 12:29:12 +00:00
whesse@google.com
ea9b57d9ff
dart:io | Skip raw_secure_server_socket_intense_test on macos, due to limit on number of open sockets on Mac.
...
BUG=
Review URL: https://codereview.chromium.org//12389048
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19298 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-01 12:23:15 +00:00
whesse@google.com
100ac91618
dart:io | Remove web_socket_no_secure_test, since issue 7157 is fixed.
...
BUG=
Review URL: https://codereview.chromium.org//12393006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19296 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-01 11:59:46 +00:00
whesse@google.com
aef6498465
dart:io | Add new test to try and reproduce issue 8798.
...
BUG=dartbug.com/8798
TEST=standalone/io/raw_secure_server_socket_intense_test
Review URL: https://codereview.chromium.org//12389047
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19295 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-01 11:59:19 +00:00
ajohnsen@google.com
acbc829a06
Add test for setting content-length through 'headers.set'.
...
BUG=https://code.google.com/p/dart/issues/detail?id=5666
Review URL: https://codereview.chromium.org//12377044
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19294 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-01 11:34:37 +00:00
sgjesse@google.com
474fd10deb
Update status file
...
Remove flaky marker for test io/http_content_length_test on Windows to
get the actual error message in the log file
TBR=ajohnsen@google.com
BUG=https://code.google.com/p/dart/issues/detail?id=8865
Review URL: https://codereview.chromium.org//12390030
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19278 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-01 08:19:07 +00:00
sgjesse@google.com
f4505ab61e
Add exception information to help diagnose issue 8865
...
Might we be getting a SocketIOException? If soshould it be wrapped in a HttpException?
TBR=ajohnsen@google.com
BUG=https://code.google.com/p/dart/issues/detail?id=8865
Review URL: https://codereview.chromium.org//12379039
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19277 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-01 08:06:58 +00:00