sgjesse@google.com
c10ddafcd0
Fix upgrade to secure issue
...
Ensure that no raw socket events go to the raw socket being upgraded to a secure socket.
R=whesse@google.com
BUG=
Review URL: https://codereview.chromium.org//14641002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22177 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-30 12:01:37 +00:00
sgjesse@google.com
6c486c72cd
Add static getters for common internet addresses
...
R=whesse@google.com
BUG=
Review URL: https://codereview.chromium.org//14619008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22174 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-30 11:30:05 +00:00
sgjesse@google.com
329e876f24
Add HTTP proxy tunnel support
...
The HTTP client will now use the CONNECT method with a proxy
server for all HTTPS requests. The CONNECT method will establish
a tunnel and a TLS end-to-end connection will then be created
through that tunnel.
The previous method of sending a HTTPS url as the request URI is no
longer supported. Also it is not possible to configure normal HTTP
requests to go through a tunnel created with CONNECT. All HTTP
requests use the normal procedure when going through a proxy.
Add the ability to specify a host name when creating a secure
sonnection on top of a non-secure one. This is required for a
proxy tunnel as the initial connection is to a different host as
the one the TLS connection will be with.
R=ager@google.com
BUG=https://code.google.com/p/dart/issues/detail?id=5468
Review URL: https://codereview.chromium.org//14493015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22119 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-29 13:30:12 +00:00
sgjesse@google.com
2ef54d314a
Add the ability to change the working directory
...
Directory.current have been changed from a factory constructor to a
getter and setter. The getter returns a Direcotry object holding the
current working directory. The setter changes the current working
directory of the Dart process.
R=whesse@google.com
BUG=https://code.google.com/p/dart/issues/detail?id=6316 , https://code.google.com/p/dart/issues/detail?id=8893
Review URL: https://codereview.chromium.org//13896034
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22116 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-29 12:43:53 +00:00
whesse@google.com
5d83ba3dac
dart:io | Add two more tests for SecureSocket builtin certificates.
...
BUG=
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//13956011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22113 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-29 11:47:16 +00:00
sgjesse@google.com
ddbbfea209
Update status file
...
TBR=ager@google.com
BUG=
Review URL: https://codereview.chromium.org//14271027
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21948 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 13:30:02 +00:00
sgjesse@google.com
a5b331161a
Fix broken test
...
Turned out that UnmodifiableListMixin was not public.
R=kustermann@google.com
BUG=
Review URL: https://codereview.chromium.org//14052010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21947 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 13:13:23 +00:00
sgjesse@google.com
921653a087
Add a new test suite 'analyze_tests'
...
The new test suite 'analyze_tests' will run the analyzer on the
selected tests, and fail if there are static type errors. Currently
only the tests in tests/standalone are included, but that can easily
be expanded.
The reason for starting this was that for M4 we where missing two
'part' files in io.dart (for the HttpBody utility class). This caused
the use of HttpBody in the editor to be complicated. With static type
checking on the tests which tested HttpBody this mistake would have
been caught.
R=ager@google.com , ricow@google.com , kustermann@google.com , ajohnsen@google.com
BUG=
Review URL: https://codereview.chromium.org//14436004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21944 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 12:47:13 +00:00
sgjesse@google.com
300ceb4c22
Fix test
...
The test started failing on Windows after socket code changes.
TBR=ajohnsen@google.com
BUG=
Review URL: https://codereview.chromium.org//13918016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21943 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 12:33:14 +00:00
ajohnsen@google.com
ca706b0387
Disable IPv6 lookup by default.
...
Will revert once IPv6 have stablized.
BUG=
Review URL: https://codereview.chromium.org//13918013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21936 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 10:25:25 +00:00
ajohnsen@google.com
55963a1a6d
Add new InternetAddress class with a static lookup function (including IPv6
...
results).
Reapply of https://codereview.chromium.org/13880029/ with fixes.
BUG=
Review URL: https://codereview.chromium.org//14469002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21934 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 09:26:58 +00:00
ajohnsen@google.com
60946b53fc
Revert "Add new InternetAddress class with a static lookup function (including IPv6 results)."
...
Revert "Attempt to fix strict align issue."
Revert "Trying another fix."
BUG=
Review URL: https://codereview.chromium.org//14036017
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21928 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 08:10:00 +00:00
ajohnsen@google.com
20d1f5ddda
Add new InternetAddress class with a static lookup function (including IPv6 results).
...
Reapply of https://codereview.chromium.org/14083007/ with fixes.
BUG=
Review URL: https://codereview.chromium.org//13880029
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21923 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 07:12:05 +00:00
sgjesse@google.com
6f14d9678a
Fix static type errors in a number of tests
...
R=ager@google.com
BUG=
Review URL: https://codereview.chromium.org//13860006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21919 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 06:12:08 +00:00
ager@google.com
431954b584
Rename dart:typeddata to dart:typed_data.
...
R=asiva@google.com , floitsch@google.com , srdjan@google.com
BUG=
Review URL: https://codereview.chromium.org//14426006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21871 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-23 11:54:54 +00:00
sgjesse@google.com
f45c407244
Fix bugs in HttpBody detected by the analyzer
...
TBR=ajohnsen@google.com
BUG=
Review URL: https://codereview.chromium.org//13950015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21868 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-23 11:18:01 +00:00
sgjesse@google.com
afcb3ce69e
Revert "Add new InternetAddress class with a static lookup function (including IPv6 results)"
...
TBR=ajohnsen@google.com
Review URL: https://codereview.chromium.org//14081024
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21865 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-23 10:07:03 +00:00
ajohnsen@google.com
b33d142414
Add new InternetAddress class with a static lookup function (including IPv6 results).
...
Socket.connect/ServerSocket.bind now accepts IPv6 host names. If a new ServerSocket is connected to an IPv6 interface, it will (if possible) support incoming IPv4 connections as well.
BUG=
Review URL: https://codereview.chromium.org//14083007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21862 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-23 09:36:18 +00:00
sgjesse@google.com
029e343b42
Add the HttpBodyHandler files to the dart:io library
...
R=ajohnsen@google.com
BUG=
Review URL: https://codereview.chromium.org//13996024
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21861 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-23 08:38:05 +00:00
sgjesse@google.com
efcd056ebe
Support upgrading sockets to secure sockets
...
This build on the support for upgrading raw sockets to raw secure sockets.
R=ajohnsen@google.com
BUG=https://code.google.com/p/dart/issues/detail?id=8789
Review URL: https://codereview.chromium.org//14034012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21859 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-23 06:50:59 +00:00
ager@google.com
44eae39fef
dart2js now supports typeddata and can run the http_parser test
...
R=sgjesse@google.com , vsm@google.com
BUG=
Review URL: https://codereview.chromium.org//13842018
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21800 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-22 10:02:37 +00:00
sgjesse@google.com
9216562647
Try to fix flakiness of test standalone/io/raw_secure_server_socket_test
...
The test tests/standalone/io/raw_secure_server_socket_test.dart could
complete the same future twice. This should fix that.
R=ager@google.com
BUG=
Review URL: https://codereview.chromium.org//14189020
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21739 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-19 12:27:58 +00:00
ajohnsen@google.com
5d75150718
Fix Zlib filters to correctly emit the last chunks of data.
...
BUG=https://code.google.com/p/dart/issues/detail?id=10026
Review URL: https://codereview.chromium.org//14241021
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21735 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-19 11:40:04 +00:00
sgjesse@google.com
e1aa202b58
Add the ability to secure an already established raw socket connection
...
The static methods secure and secureServer can be used to start
TLS handshake as eihter client or server.
This CL only implement the securing of RawSocket.
This also changes the semantics of cancelling a subscription on a
RawSocket from closing the socket to just pausing.
R=ager@google.com
BUG=https://code.google.com/p/dart/issues/detail?id=8789
Review URL: https://codereview.chromium.org//13502004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21719 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-19 07:37:37 +00:00
asiva@google.com
517a5c2ae0
Change test to use identical instead of '===' which is deprecated.
...
Review URL: https://codereview.chromium.org//14347003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21693 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-18 18:46:26 +00:00
asiva@google.com
c028bb5d9f
Fix failure in test in --checked mode.
...
Review URL: https://codereview.chromium.org//14141007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21691 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-18 18:36:31 +00:00
asiva@google.com
6955ed0244
Add endian parameter to the get/set functions in ByteData.
...
Review URL: https://codereview.chromium.org//14332002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21688 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-18 18:19:43 +00:00
sgjesse@google.com
cf64f0ad79
Add access to process id for both current process and processes started
...
BUG=https://code.google.com/p/dart/issues/detail?id=9129
R=ajohnsen@google.com
Review URL: https://codereview.chromium.org//14322011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21611 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-17 10:15:29 +00:00
hausner@google.com
df5c543b6f
Add library id, location info to breakpointResolved event
...
Review URL: https://codereview.chromium.org//13940008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21592 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-16 23:24:21 +00:00
vsm@google.com
b29a528fc6
Revert "Revert "Remove typeddata transferable constructors""
...
Take #2 . The only change here is the additional test fix under runtime that I missed.
Review URL: https://codereview.chromium.org//14119004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21586 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-16 22:36:04 +00:00
vsm@google.com
5a7d2854fa
Revert "Remove typeddata transferable constructors"
...
This reverts commit r21576. Looks like I missed some tests.
TBR=siva
Review URL: https://codereview.chromium.org//14130010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21580 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-16 21:22:07 +00:00
vsm@google.com
36d8fd9882
Remove typeddata transferable constructors
...
These constructors are not in the public/shared typeddata.dart. Tests
updated accordingly.
Review URL: https://codereview.chromium.org//14205004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21576 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-16 20:55:08 +00:00
ajohnsen@google.com
b5705045db
Improve WebSocket interface by making it implement StreamSink.
...
This renames send to add, but also adds the addStream method, making it
possible to pause/resume the underlying Socket.
Remove http_shutdown_test from status file. Crash have not been seen for a while.
BUG=
Review URL: https://codereview.chromium.org//14208007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21553 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-16 15:08:21 +00:00
ajohnsen@google.com
9df30d3877
Remove http_shutdown_test from status file. Crash have not been seen for a while.
...
BUG=
Review URL: https://codereview.chromium.org//14053005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21542 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-16 10:33:52 +00:00
floitsch@google.com
466d6670c1
Refactor Future constructors.
...
BUG=
Review URL: https://codereview.chromium.org//14070010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21517 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 21:24:27 +00:00
ajohnsen@google.com
6b1706285b
Fix standalone tests to pass dartc.
...
BUG=
Review URL: https://codereview.chromium.org//14268002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21514 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 21:05:33 +00:00
floitsch@google.com
5431a5af54
Remove AsyncError with Expando.
...
Review URL: https://codereview.chromium.org//14251006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21498 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 18:58:32 +00:00
ajohnsen@google.com
b4eacbf8aa
Rename RandomAccessFile.readList and RandomAccessFile.writeList to RandomAccessFile.readInto and RandomAccessFile.writeFrom.
...
BUG=
Review URL: https://codereview.chromium.org//14018007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21466 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 15:44:41 +00:00
sgjesse@google.com
8a549d27af
Fix checked mode tests
...
As writeList takes an List<int> one cannto write non List<int> types even
though the data can be serialized and deserialized.
TBR=ager@google.com
BUG=
Review URL: https://codereview.chromium.org//14018011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21461 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 15:04:51 +00:00
sgjesse@google.com
83bd0f1aa9
Add support for even more typed data on native ports
...
The only types missing now are: Float32x4, Float32x4List and
Uint32x4 (currently no Uint32x4List).
R=ager@google.com
BUG=
Review URL: https://codereview.chromium.org//13998008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21455 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 14:19:46 +00:00
floitsch@google.com
bebe3ac2cd
Refactor List.setRange function.
...
Review URL: https://codereview.chromium.org//13863012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21452 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 13:52:29 +00:00
ajohnsen@google.com
88a44982d0
Add tests for IOSink.done call effect on HttpClientRequest/HttpResponse (should be none).
...
BUG=https://code.google.com/p/dart/issues/detail?id=9141
Review URL: https://codereview.chromium.org//14113008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21433 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 11:25:24 +00:00
ajohnsen@google.com
34c499bc3f
Fix HttpBodyHandler to handle missing mimeType.
...
BUG=
Review URL: https://codereview.chromium.org//14113006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21432 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 11:24:33 +00:00
sgjesse@google.com
6507357ca0
Add support for more typed data types on native ports
...
Renamed the kUint8Array type for a Dart_CObject structure to
kByteArray to support all typed data types. The specific type is
stored in a separate type field. No matter what the specific type is,
the length of the byte array is always in bytes.
R=ager@google.com
BUG=
Review URL: https://codereview.chromium.org//14142008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21423 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 09:01:56 +00:00
sgjesse@google.com
b5e08c477f
Add support for proxies requiing authentication
...
R=ajohnsen@google.com
BUG=https://code.google.com/p/dart/issues/detail?id=5468
Review URL: https://codereview.chromium.org//13915007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21417 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 07:51:33 +00:00
ajohnsen@google.com
67650cb16e
Remove .writeStream, .consume and rewrite IOSink to correctly implement a (sane) well-defined behaviour of the .done future.
...
BUG=
Review URL: https://codereview.chromium.org//14028017
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21416 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 07:35:45 +00:00
whesse@google.com
5d0200609b
dart:io | Change the way SecureSocket initializes the NSS library with an empty database.
...
BUG=dartbug.com/7104
Review URL: https://codereview.chromium.org//13985012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21363 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-12 15:22:45 +00:00
sgjesse@google.com
1ecc99bd5d
Make common file mode and encoding constants available on the top level in dart:io
...
R=ager@google.com
BUG=
Review URL: https://codereview.chromium.org//14223007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21335 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-12 08:39:35 +00:00
ager@google.com
aed9246124
Add fromList constructor to typeddata typed lists.
...
It seems that creating a typed array from a normal
list is something that is done fairly frequently.
It therefore seems to make sense to add the fromList
convenience constructor.
R=asiva@google.com ,iposva@google.com
BUG=
Review URL: https://codereview.chromium.org//13834008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21325 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-12 06:07:55 +00:00
whesse@google.com
f89c2aba3a
dart:io | Add additional test of directory listing of broken links.
...
BUG=dartbug.com/9832
Review URL: https://codereview.chromium.org//14166002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21277 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-11 13:15:31 +00:00