Commit Graph
19 Commits
Author SHA1 Message Date
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