Commit Graph

2501 Commits

Author SHA1 Message Date
William Hesse 169b132a63 Add unique serial numbers to sample X509 certificates. Remove the "sendClientCertificate" parameter from SecureSocket.connect.
BUG=
R=sgjesse@google.com

Review URL: https://codereview.chromium.org/1420923006 .
2015-10-29 13:17:22 +01:00
Ryan Macnak 371a5dc932 Get tools/test.py --noopt green.
More specifically ./tools/test.py --noopt -mall -ax64,simarm,simarm64,simmips --exclude-suite=pkg

 - Add missing dart:io entry point.
 - Add checks that Dart_FinalizeLoading, Dart_Precompile, Dart_CreatePrecompiledSnapshot are called in order.
 - Add checks for --precompilation flag.
 - Add checks for dropped class in Dart_New/Allocate/AllocateWithNativeFields.

R=fschneider@google.com

Review URL: https://codereview.chromium.org/1407393005 .
2015-10-21 10:35:01 -07:00
William Hesse 6bb8ce3739 Add new sample X509 certificates for SecureSocket tests.
BUG=
R=sgjesse@google.com

Review URL: https://codereview.chromium.org/1411793004 .
2015-10-20 18:15:28 +02:00
William Hesse b519e4c000 Add support for client certificates to Secure[Server]Socket
BUG=https://github.com/dart-lang/sdk/issues/24069
BUG=https://github.com/dart-lang/sdk/issues/24070
R=sgjesse@google.com

Review URL: https://codereview.chromium.org/1416843003 .
2015-10-20 17:18:57 +02:00
Asger Feldthaus ee0f98ab33 dart2js cps: Ensure parameter default values are emitted.
BUG=
R=sra@google.com

Review URL: https://codereview.chromium.org/1411763002 .
2015-10-16 17:00:32 +02:00
William Hesse 184c7b0182 Add script that generates X509 certificates for testing dart:io SecureSocket
BUG=
R=sgjesse@google.com

Review URL: https://codereview.chromium.org/1399243004 .
2015-10-14 10:50:48 +02:00
William Hesse 35ba8f396e Update status for failing map_literal_oom_test on content shell.
BUG=https://github.com/dart-lang/sdk/issues/24571
R=sgjesse@google.com

Review URL: https://codereview.chromium.org/1406503002 .
2015-10-13 10:41:07 +02:00
Søren Gjesse 7c0688a5c6 Ensure ZILB encoder handles all typed data lists correctly
R=ajohnsen@google.com, lrn@google.com
BUG= https://github.com/dart-lang/sdk/issues/24521

Review URL: https://codereview.chromium.org/1393013002 .
2015-10-08 18:19:02 +02:00
William Hesse da574129a8 Add full BoringSSL error information to Dart exceptions it throws.
Fix error in http_proxy_advanced_test.

BUG=https://github.com/dart-lang/sdk/issues/24183
BUG=https://github.com/dart-lang/sdk/issues/24068
BUG=https://github.com/dart-lang/sdk/issues/24074
R=sgjesse@google.com

Review URL: https://codereview.chromium.org/1386023003 .
2015-10-06 16:30:10 +02:00
Søren Gjesse e0daf8dd93 Don't run larger datagram tests on Mac OS
These new tests fail on the default Mac OS configuration.

TBR=kustermann@google.com
BUG=

Review URL: https://codereview.chromium.org/1382993005 .
2015-10-06 10:20:58 +02:00
Soren Gjesse 33e2d9cd7e Increase the datagram receive buffer on Windows to 64k
A datagram can can be up to 64k, and if the buffer is too small the received data is truncated.

This change also correctly handles errors when receiving datagrams on Windows.

BUG= #24426
R=kustermann@google.com, iposva@google.com

Review URL: https://codereview.chromium.org/1381233003.
2015-10-06 08:42:51 +02:00
William Hesse 291ae520a9 Split http_proxy_test into two tests, with failing tests in a new file.
BUG=
R=sgjesse@google.com

Review URL: https://codereview.chromium.org/1384293002 .
2015-10-05 16:33:26 +02:00
William Hesse f65a2f6499 Fixed checked-mode error in security_context_argument_test.
BUG=
R=sgjesse@google.com

Review URL: https://codereview.chromium.org/1389633003 .
2015-10-05 15:34:42 +02:00
William Hesse 0c2bea237f Add check for password length in SecurityContext. Check return values from BoringSSL functions, throw exceptions.
BUG=https://github.com/dart-lang/sdk/issues/24182
R=sgjesse@google.com

Review URL: https://codereview.chromium.org/1384533002 .
2015-10-05 13:51:01 +02:00
Søren Gjesse 65872873d2 Remove server socket references
The use of server socket references was deprecated in 1.9 and marked
for removal in 1.10.

R=kustermann@google.com

BUG=http://dartbug.com/22187

Review URL: https://codereview.chromium.org/1072783003 .
2015-10-05 12:25:20 +02:00
Ryan Macnak 67c15fc982 Make --noopt behave like an in-place precompilation.
Breaks --noopt for IA32.

R=srdjan@google.com

Review URL: https://codereview.chromium.org//1373873004 .
2015-09-30 13:11:47 -07:00
Ryan Macnak da006acfdf Extend precompilation test to Mac. Attempt to fix for host MIPS.
R=fschneider@google.com

Review URL: https://codereview.chromium.org//1370833003 .
2015-09-28 10:04:45 -07:00
Ryan Macnak db641b5bb9 Also skip precompilation test on Dartium.
TBR=fschneider@google.com

Review URL: https://codereview.chromium.org//1361903006 .
2015-09-24 09:55:03 -07:00
Florian Schneider 3d69c08079 Temporarily disable precompilation_test on ARM hardware.
BUG=dartbug.com/24427

TBR=rmacnak@google.com,

Review URL: https://codereview.chromium.org//1369483002 .
2015-09-24 14:21:23 +02:00
Florian Schneider 87ec428cab Fix ia32 test expectation of precompilation_test.
TBR=rmacnak@google.com,

Review URL: https://codereview.chromium.org//1369453002 .
2015-09-24 12:45:35 +02:00
Florian Schneider 3a75f0d67a Add simple VM test for precompiled code.
The test creates a precompiled snapshot in a temporary directory, runs it and
checks the output.

Also:
Minor cleanup and fix segfault on dlopen error and with --trace-isolates

BUG=
R=rmacnak@google.com

Review URL: https://codereview.chromium.org//1362743003 .
2015-09-24 11:36:46 +02:00
Karl Klose e28e578731 dart2js cps: Support sync* and yield.
R=asgerf@google.com, kmillikin@google.com

Review URL: https://codereview.chromium.org//1353843002 .
2015-09-23 11:01:34 +02:00
Asger Feldthaus 19cb08fa05 dart2js cps: Remove code after calls that cannot return.
This should resolve an outstanding issue with unreachable code being
transformed. A subterm in the unreachable code would get specialized
and then reanalyzed while some of the definitions in scope have no type.

This changes a lot of test case results. Some test results
have changed in very surprising ways, but I would argue
these are separate bugs that we should hunt down.

BUG=
R=kmillikin@google.com

Review URL: https://codereview.chromium.org//1335273003 .
2015-09-15 17:46:48 +02:00
Kevin Millikin 0253d7edd0 Dart2js CPS: mark a pair of failures in the test status files.
R=asgerf@google.com
BUG=

Review URL: https://codereview.chromium.org//1341323002 .
2015-09-15 15:50:36 +02:00
Rico Wind 8917d7b6c7 Fix suppression of no_assert_test for dartium.
R=iposva@google.com
BUG=

Review URL: https://codereview.chromium.org//1338243002 .
2015-09-14 12:34:24 +02:00
Rico Wind 99dc218f4a Mark no_assert_test also passing on drt
R=iposva@google.com
BUG=

Review URL: https://codereview.chromium.org//1340903002 .
2015-09-14 09:51:59 +02:00
Rico Wind 2e22f41612 This is a fixed up version of:
https://codereview.chromium.org/1305183010/

- Reorder the priority of flags in the test harness when passed to the VM:
  default flags, file flags, command line flags
- Ensure to not enable assertions when not being requested.

Peter, any reason to not move the flags in to the
configuration file?  Why don't we actually have all of them in there? (not
that I want to move them, I am just currious why we don't add them in
there, it seems more logical to me)

BUG=
R=iposva@google.com, whesse@google.com

Committed: https://github.com/dart-lang/sdk/commit/dd7767d95eda87054844e0b24ebd2ce9b04354bb

Review URL: https://codereview.chromium.org//1330643003 .
2015-09-14 07:58:18 +02:00
Johnni Winther 8855bc8161 Support metadata on patches.
Closes #24291

R=karlklose@google.com

Review URL: https://codereview.chromium.org//1302333006.
2015-09-09 13:04:51 +02:00
Rico Wind c99e5c02fa Fix tests that explicitly part in io library files
R=sgjesse@google.com
BUG=

Review URL: https://codereview.chromium.org//1328213003 .
2015-09-08 13:30:03 +02:00
Karl Klose d9caf4a725 Move cps-ir section to the end of the file and update test expectations.
BUG=
R=kmillikin@google.com

Review URL: https://codereview.chromium.org//1312583008 .
2015-09-07 15:37:39 +02:00
Søren Gjesse 0124a0542e Revert "Handle addError on a WebSocket"
This reverts commit 373dd4b33c.

Timeout in tests on Windows and Mac

TBR=ricow@google.com
BUG=

Review URL: https://codereview.chromium.org//1328123002 .
2015-09-07 09:07:39 +02:00
Rico Wind 02320ff26e Revert "This is a fixed up version of:"
This reverts commit dd7767d95e.

This made the analyzer fail:
http://build.chromium.org/p/client.dart/builders/analyzer_experimental-linux-release-be/builds/3418/

Please note that this is just not the new test (which I would just have
suppressed)
It seems that in --checked --host-checked mode we see a range of new
failures, because of the change to flags.

It also made dart2js fail on the new tests

Ivan: Will you look into this with the analyzer people?

R=iposva@google.com
BUG=

Review URL: https://codereview.chromium.org//1308743006 .
2015-09-07 08:41:46 +02:00
Søren Gjesse 373dd4b33c Handle addError on a WebSocket
A call to addError on a WebSocket will now close the connection and add the
error to the associated stream.

Using addError on a WebSocket is not that relevant as normally the close
method is used to close with a possible error condition.

BUG= https://github.com/dart-lang/sdk/issues/24278
R=lrn@google.com

Review URL: https://codereview.chromium.org//1304243005 .
2015-09-07 08:28:49 +02:00
Rico Wind dd7767d95e This is a fixed up version of:
https://codereview.chromium.org/1305183010/

- Reorder the priority of flags in the test harness when passed to the VM:
  default flags, file flags, command line flags
- Ensure to not enable assertions when not being requested.

Peter, any reason to not move the flags in to the
configuration file?  Why don't we actually have all of them in there? (not
that I want to move them, I am just currious why we don't add them in
there, it seems more logical to me)

BUG=
R=iposva@google.com, whesse@google.com

Review URL: https://codereview.chromium.org//1330643003 .
2015-09-07 07:44:41 +02:00
Todd Turnidge 69aa75ae78 Fix full_coverage_test.dart.
BUG=

Review URL: https://codereview.chromium.org//1311223006 .
2015-09-04 15:23:41 -07:00
Rico Wind 0ba8920cdf Mark standalone/io/observatory_test as crash on dart2js
This started happening after landing new io resource metadata tracking in:
https://github.com/dart-lang/sdk/commit/06ab2bdbdda2ad1696a842ea44d8fd0d38106f7f

I created issue 24291 to track this

BUG=

Review URL: https://codereview.chromium.org//1330603003 .
2015-09-04 07:20:18 +02:00
William Hesse db97aa7e96 Fix hostname checking problem in SecureSocket
BUG=https://github.com/dart-lang/sdk/issues/24071
R=sgjesse@google.com

Review URL: https://codereview.chromium.org//1308773005 .
2015-08-28 10:08:34 +02:00
William Hesse 13bf8ff9f8 Breaking Change: merge BoringSSL branch into master
This replaces the NSS secure networking library from Mozilla
with the BoringSSL library from Google. This library, based
on OpenSSL, reads certificates from files in PEM format, rather
than storing certificates and keys in a SQLite database, the
way NSS does. There will be a blog post, changelog entries,
and other documentation of the breaking changes.

Review URL: https://codereview.chromium.org//1319703002 .
2015-08-26 14:42:12 +02:00
Karl Klose 6820b95c1c dart2js cps: update test expectations.
TBR=kmillikin@google.com

Review URL: https://codereview.chromium.org//1303333003 .
2015-08-24 10:59:15 +02:00
Harry Terkelsen ccc8a1c538 Mark invalid package config tests as 'Crash, OK' for analyzer.
The analyzer terminates with nonzero exit code if given an invalid
package spec.

BUG=
R=pquitslund@google.com

Review URL: https://codereview.chromium.org//1307653002 .
2015-08-20 15:47:59 -07:00
Harry Terkelsen 7a219da572 Remove test for packages with ':' in the name.
Windows does not allow paths with ':'. If we include a directory
named 'qu:ux' in the repo then it cannot even be cloned on a Windows
machine.

BUG=
R=iposva@google.com

Review URL: https://codereview.chromium.org//1293793010 .
2015-08-19 17:53:15 -07:00
Harry Terkelsen 714734b220 Disable target_with_colon_test on Windows.
Windows does not allow colons in paths.

BUG=
R=iposva@google.com

Review URL: https://codereview.chromium.org//1303613003 .
2015-08-19 16:58:29 -07:00
Harry Terkelsen 98e67aa065 dart2js: fail gracefully with invalid package config
Fixes #24118
Fixes #24120
Fixes #24121
Fixes #24122

BUG=
R=sigmund@google.com

Review URL: https://codereview.chromium.org//1291283006 .
2015-08-19 16:00:37 -07:00
Harry Terkelsen c6655ad43d Add more tests for .packages
BUG=
R=iposva@google.com, pquitslund@google.com

Review URL: https://codereview.chromium.org//1298323002 .
2015-08-19 13:17:01 -07:00
Harry Terkelsen f65c675c16 Add tests for simple packages scenarios
BUG=
R=iposva@google.com, pquitslund@google.com

Review URL: https://codereview.chromium.org//1290623002 .
2015-08-17 17:13:19 -07:00
Lasse R.H. Nielsen 90643a7ef7 Make HttpClient not send fragments as part of request.
Make HttpServer ignore fragments sent in requests (which are invalid HTTP request syntax).

Add `removeFragment` method to Uri.

R=sgjesse@google.com

Review URL: https://codereview.chromium.org//1281973004 .
2015-08-10 12:18:12 +02:00
Karl Klose bafb8fb191 dart2js cps: Support async/await by rewriting the JavaScript AST.
BUG=
R=kmillikin@google.com

Review URL: https://codereview.chromium.org//1253333002 .
2015-08-07 11:27:40 +02:00
Søren Gjesse 2ca0bc6d5a Echo the WebSocket close reason as well as the close code
When receiving a close frame with a code and reason both the code
and the reason are now added to the close frame send as response.
Before only the code was added

BUG=https://github.com/dart-lang/sdk/issues/23964
R=kustermann@google.com

Review URL: https://codereview.chromium.org//1273663002 .
2015-08-05 11:53:32 +02:00
Daniel Andersson 0e5026b8db full_coverage_test passes again after fixing 23848
BUG=
R=whesse@google.com

Review URL: https://codereview.chromium.org//1238333002 .
2015-07-20 08:39:41 -07:00
Karl Klose 0869c5ca4a dart2js cps: Update test expectations.
TBR=asgerf@google.com

Review URL: https://codereview.chromium.org//1240253002 .
2015-07-20 14:40:37 +02:00