34 Commits
Author SHA1 Message Date
Zoltan Varga e14ef8a658 [corlib] Move the implementations of virtual methods from Assembly to RuntimeAssembly to ease netcore integration. (#12805)
* [corlib] Move the implementations of virtual methods from Assembly to RuntimeAssembly to ease netcore integration.

* [corlib] Move more code to RuntimeAssembly.

* [corlib] Move fields from Assembly to RuntimeAssembly/AssemblyBuilder.cs. Reduce the amount of fields visible to runtime code.

* Update serialization tests.

* Fix the MOBILE build.

* Bump API snapshot submodule
2019-02-08 13:05:54 -05:00
Alexander Köplinger ca1455d58b [System.Web] Switch CacheItemPriorityQueueTest to use embedded test resources 2018-09-27 22:47:10 +02:00
Alexander Kyte ca8b8bd346 [runtime] Add Dedup Support to MkBundle (#5484)
* [runtime] Fix mkbundle compilation on OSX

* [runtime] Add aot arguments to mkbundle

* [runtime] Enable compiling aot with mkbundle

* [runtime] Add new dedup interface to mkbundle

* [runtime] Fix path resolving for mkbundle

* [runtime] Use mkbundle in BCL tests

* [runtime] Skip building System.Security, System.IdentityModel tests on testing_aot_full

* [runtime] Fix in-tree building for mkbundle

* [runtime] Move testing dll into profile

* [runtime] Add target to mkbundle all tests before CI

* [runtime] Build stripper and use with mkbundle

Preliminary linker support ran into dependency-finding bug
with the monolinker.exe binary. Fix postponed until later.

* [runtime] Skip not supported tests with mkbundle

* [runtime] Don't re-aot when running BCL tests

* [runtime] Provide config to mkbundle

* [runtime] Fix mkbundle internationalization test results, build all

* [runtime] Clean up temp mkbundle aot directory

* [runtime] Add mkbundle support for dedup

* [runtime] Fix tracking of dedup module in mkbundle

* [runtime] Document mkbundle AOT options in man pages

* [runtime] Fix CADMessage generic method argument marshalling
2017-11-15 09:56:26 -05:00
Alexander Köplinger 6caf00b09c [bcl] Remove AssertExtensions helper classes (#5828)
* [bcl] Remove AssertExtensions helper classes

Since we're on nunitlite now we can use the proper `Assert.Throws<>()`
instead and remove the helper class (which we actually duplicated!)
2017-10-19 12:38:33 +02:00
Alexander Köplinger 2439f17bef Revert "Merge pull request #5330 from alexanderkyte/dedup_mkbundle"
This reverts commit 9a287c0412, reversing
changes made to 4a79280b3b.

It breaks tons of tests.
2017-08-31 00:41:53 +02:00
Alexander Kyte a4edbde01e [runtime] Move testing dll into profile 2017-08-30 12:54:47 -04:00
Alexander Köplinger b03e606287 Remove ChangeLog files from the repo
They weren't updated in the last 6 years and aren't helpful anymore (e.g. by causing unrelated matches during git grep searches).
2016-01-29 19:17:06 +01:00
Alexander Köplinger cdd384ac72 [System.Web] Fix another wrong test assembly name
Didn't catch that one in 180e745cce as it hides itself pretty well :)
2016-01-28 03:56:59 +01:00
Alexander Köplinger 98cf04084a [bcl] Remove NET_4_0 defines from class libs
NET_4_0 is always defined now, so the ifdefs are redundant.
I verified the libs are exactly the same after this change, so this is effectively a no-op.
2015-07-26 15:01:49 +02:00
Marek Safar aedaab80da [System.Web] Update encoded profile name 2015-07-22 10:06:50 +02:00
Marek Safar 32f1d4fa07 Revert "Fix more System.Web tests."
This reverts commit 7fa35b58ca.
2015-03-20 14:50:42 +01:00
Zoltan Varga 7fa35b58ca Fix more System.Web tests. 2015-03-20 07:04:42 -04:00
Marek Safar 4913b6b537 [system.web] Update failing test 2015-03-20 10:17:55 +01:00
Alexander Köplinger d4d7374efc [bcl] Remove ONLY_1_1 defines from class libs
This is not used anymore.
2015-01-21 17:18:30 +01:00
Alexander Köplinger 746650d1b9 [bcl] Remove more NET_2_0 checks from class libs 2015-01-17 05:45:39 +01:00
Marek Safar cf4f10ef51 Update test binary data 2014-07-23 10:15:16 +02:00
Marek Safar 1485c35ac1 Fix failing test 2012-05-30 18:29:00 +01:00
Marek Habersack c00c5d00fd [asp.net] CacheItemPriorityQueueTest improvements
External files are now used to store the test case lists and steps. Added tests for the new Update
operation. Added a new sequence.
2011-04-11 14:48:13 +02:00
Marek Habersack 1b67522d98 [asp.net] Disabled a racy test 2011-01-05 12:06:30 +01:00
Marek Habersack 028b4edbc0 [asp.net] Rewrote CacheItemPriorityQueue tests generator to produce simpler test case.
The new test case uses arrays and postpones creation of CacheItemPriorityQueueTestItem and TestCacheItem
instances till the actual test is ran. This reduces complexity of the CacheItemPrioritQueueTest class
constructor and allows the code to run successfully on 32 bit machines.
2011-01-05 10:30:08 +01:00
Marek Habersack 4b785e19d7 [asp.net] Disabled array clearing on heap resize in CacheItemPriorityQueue as it causes NREX to be thrown with > 8192 items in the queue.
- Rewrote the CacheItem priority queue test generator to generate better code.
- CacheItem in System.Web doesn't have the unused Guid field now (the field is used only for tests)
- Added a huge sequence to CacheItem priority queue tests (10k entries)
2010-11-19 02:30:16 +01:00
Marek Habersack 73c3bfba56 2010-02-03 Marek Habersack <[email protected]>
* AssemblyInfo.cs: added back InternalsVisibleTo for the test
        assembly - it's needed to access CacheItemPriorityQueue

2010-02-03  Marek Habersack  <[email protected]>

        * OutputCache.cs: DefaultProviderName checks if there was any
        provider configured and, if not, returns a built-in provider's
        name.

        * SqlCacheDependencyAdmin.cs: added

        * OutputCacheProviderCollection.cs: added

        * OutputCacheProvider.cs: added

        * OutputCacheModule.cs: uses the 4.0 extensible output cache
        provider model now (also internally in the 2.0 profile)
        OutputCacheProvider is retrieved on every request using
        HttpApplication.GetOutputCacheProviderName (4.0+). In the 2.0
        profile an instance of InMemoryOutputCacheProvider is always
        returned.

        * InMemoryOutputCacheProvider.cs: default output cache provider
        for ASP.NET 4.0, also used internally in the  2.0 profile.

        * CachedVaryBy.cs: made the generated key shorter

        * CacheItemPriorityQueueDebug.cs: debugging support for
        CacheItemPriorityQueue. Most of the code is compiled only when the
        DEBUG macro is defined. Debugging support includes recording of
        the queue operations sequence which is output to an XML file on
        appdomain shutdown. The recorded sequence files can be used to
        generate NUnit test cases for the priority queue (see
        ../Test/tools/README)

        * CacheItemPriorityQueue.cs: rewritten using an array based heap
        instead of a binary tree based one - implementation is simpler,
        faster and more elegant. Heap is initially 32 entries long and
        its size is doubled every time it fills up. After reaching a
        threshold (8192 entries currently) it is shrunk to the number of
        items + 1/3 of item count in order to preserve memory.

        * CacheItem.cs: added a Guid field to easier distinguish items
        (mostly for debugging purposes)

        * CacheDependency.cs: minor performance improvements

        * Cache.cs: better handling of timer periods

2010-02-03  Marek Habersack  <[email protected]>

        * HttpApplication.cs: GetOutputCacheProviderName returns the value
        of OutputCache.DefaultProviderName

        * HttpRuntime.cs: internal cache is used to hold the dependencies
        now.

2010-02-03  Marek Habersack  <[email protected]>

        * CacheItemPriorityQueueTest_generated.cs: added

        * CacheItemPriorityQueueTest.cs: added

2010-02-04  Marek Habersack  <[email protected]>

        * Helpers.cs: added a helper method for checking of HTML mentions
        any .NET exceptions.

2010-02-03  Marek Habersack  <[email protected]>

        * Makefile: added targets to compile cache priority queue tests
        generator and to generate the tests themselves

svn path=/trunk/mcs/; revision=150855
2010-02-04 13:53:55 +00:00
Marek Habersack dc4d82729f 2010-01-25 Marek Habersack <[email protected]>
* SqlCacheDependency.cs: added parameter checks to the
	constructors.
	Partially implemented 4.0 method CreateOutputCacheDependency

	* CacheItemUpdateReason.cs, CacheItemUpdateCallback.cs: added

	* CacheItem.cs: added OnUpdateCallback field

	* Cache.cs: implemented support for cache item update callback
	(3.5+)

	* AggregateCacheDependency.cs: added undocumented
	DependencyDispose method override

2010-01-25  Marek Habersack  <[email protected]>

	* SqlCacheDependencyTest.cs: added

svn path=/trunk/mcs/; revision=150130
2010-01-25 14:02:18 +00:00
Marek Habersack bd08ce5b8b 2010-01-22 Marek Habersack <[email protected]>
* SubstitutionResponseElement.cs: implemented correct
	(de)serialization of the Callback delegate.

	* OutputCache.cs: implemented Serialize, Deserialize,
	DefaultProviderName and Providers.

2010-01-22  Marek Habersack  <[email protected]>

	* AssertExtensions.cs: added AreEqual method for comparing byte
	arrays.

2010-01-22  Marek Habersack  <[email protected]>

	* OutputCacheTest.cs: added

svn path=/trunk/mcs/; revision=150080
2010-01-22 22:26:06 +00:00
Marek Habersack b315e2df14 2010-01-21 Marek Habersack <[email protected]>
* FileResponseElementTest.cs, HeaderElementTest.cs,
	MemoryResponseElementTest.cs, SubstitutionResponseElementTest.cs:
	added

2010-01-21  Marek Habersack  <[email protected]>

	* DatabaseNotEnabledForNotificationException.cs, OutputCache.cs,
	FileResponseElement.cs, HeaderElement.cs, IOutputCacheEntry.cs,
	MemoryResponseElement.cs, OutputCacheProvider.cs,
	ResponseElement.cs, OutputCacheProviderCollection.cs,
	SubstitutionResponseElement.cs,
	TableNotEnabledForNotificationException.cs: added

	* CacheDependency.cs: default constructor is protected in 4.0

svn path=/trunk/mcs/; revision=150025
2010-01-21 22:30:21 +00:00
Atsushi Eno 6a30b6cffc 2008-06-27 Atsushi Enomoto <[email protected]>
* AggregateCacheDependencyTest.cs: mark wrong, timing-
          dependent test as "Ignore".


svn path=/trunk/mcs/; revision=106742
2008-06-27 16:07:37 +00:00
Marek Habersack 849b2cd488 Increase sleep time for tests which fail on the build bot
svn path=/trunk/mcs/; revision=106262
2008-06-19 22:49:00 +00:00
Marek Habersack f0842083bc 2007-08-17 Marek Habersack <[email protected]>
* CacheDependency.cs: use DependencyChanged as a list of events.
	OnChanged now calls OnDependencyChanged, to notify
	AggregateCacheDependency that it has changed. Fixes bug #82419.

2007-08-17  Marek Habersack  <[email protected]>

	* AggregateCacheDependencyTest.cs: dependency expiration
	notification works correctly now.

svn path=/trunk/mcs/; revision=84270
2007-08-17 12:06:22 +00:00
Gert Driesen 152d26e6f3 Set eol-style.
svn path=/trunk/mcs/; revision=84105
2007-08-14 18:27:40 +00:00
Gert Driesen 74db3d3181 * AggregateCacheDependencyTest.cs: Added test for bug #82419.
* System.Web_test.dll.sources: Added AggregateCacheDependencyTest.cs.

svn path=/trunk/mcs/; revision=84103
2007-08-14 18:04:25 +00:00
Sebastien Pouliot c7ea63ea16 2005-09-13 Sebastien Pouliot <[email protected]>
* CacheDependencyCas.cs: Under 1.x FAM also requires UnmanagedCode so 
	we must assert this too before creating instances. We also "hide" an
	error where the initialization throws a NullReferenceException on 1.x
	(as this has nothing to do with CAS).


svn path=/trunk/mcs/; revision=49993
2005-09-14 01:09:19 +00:00
Sebastien Pouliot e0c4442fc4 2005-09-02 Sebastien Pouliot <[email protected]>
* CacheCas.cs: New. CAS unit tests for Cache. It turns out that 
	UnmanagedCode permission is also required (down-level).
	* CacheDependencyCas.cs: New. CAS unit tests for CacheDependency. It 
	turns out that FileIOPermission is also required (down-level) and that
	Mono (currently) requires Unmanaged permission for FAM.

svn path=/trunk/mcs/; revision=49344
2005-09-02 13:33:52 +00:00
Gonzalo Paniagua Javier dbc851d8e7 updates
svn path=/trunk/mcs/; revision=43704
2005-04-28 03:56:38 +00:00
Gonzalo Paniagua Javier ebf390b7ba New test for Cache by Eyal Alayuf (Mainsoft)
svn path=/trunk/mcs/; revision=43703
2005-04-28 03:42:24 +00:00