Sat, 03 Jan 2015 20:18:00 +0100
Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.
michael@0 | 1 | # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- |
michael@0 | 2 | # vim: set filetype=python: |
michael@0 | 3 | # This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | # License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 5 | # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 6 | |
michael@0 | 7 | TEST_TOOL_DIRS += [ |
michael@0 | 8 | 'external', |
michael@0 | 9 | 'component', |
michael@0 | 10 | 'bug656331_component', |
michael@0 | 11 | 'component_no_aslr', |
michael@0 | 12 | ] |
michael@0 | 13 | |
michael@0 | 14 | if CONFIG['OS_ARCH'] == 'WINNT': |
michael@0 | 15 | TEST_TOOL_DIRS += ['windows'] |
michael@0 | 16 | |
michael@0 | 17 | if CONFIG['DEHYDRA_PATH']: |
michael@0 | 18 | TEST_TOOL_DIRS += ['static-checker'] |
michael@0 | 19 | |
michael@0 | 20 | FAIL_ON_WARNINGS = True |
michael@0 | 21 | |
michael@0 | 22 | EXPORTS.testing += [ |
michael@0 | 23 | 'TestHarness.h', |
michael@0 | 24 | ] |
michael@0 | 25 | |
michael@0 | 26 | SIMPLE_PROGRAMS = [ |
michael@0 | 27 | 'nsIFileEnumerator', |
michael@0 | 28 | 'TestArguments', |
michael@0 | 29 | 'TestBlockingProcess', |
michael@0 | 30 | 'TestCallTemplates', |
michael@0 | 31 | 'TestINIParser', |
michael@0 | 32 | 'TestPRIntN', |
michael@0 | 33 | 'TestQuickReturn', |
michael@0 | 34 | 'TestRacingServiceManager', |
michael@0 | 35 | 'TestRegistrationOrder', |
michael@0 | 36 | 'TestThreadPoolListener', |
michael@0 | 37 | 'TestTimers', |
michael@0 | 38 | 'TestUnicodeArguments', |
michael@0 | 39 | ] |
michael@0 | 40 | |
michael@0 | 41 | if CONFIG['OS_TARGET'] == 'WINNT': |
michael@0 | 42 | SIMPLE_PROGRAMS += [ |
michael@0 | 43 | 'TestBase64', |
michael@0 | 44 | ] |
michael@0 | 45 | |
michael@0 | 46 | if CONFIG['WRAP_STL_INCLUDES']: |
michael@0 | 47 | SIMPLE_PROGRAMS += [ |
michael@0 | 48 | 'TestSTLWrappers', |
michael@0 | 49 | ] |
michael@0 | 50 | |
michael@0 | 51 | SOURCES += [ |
michael@0 | 52 | '%s.cpp' % s for s in sorted(SIMPLE_PROGRAMS) |
michael@0 | 53 | ] |
michael@0 | 54 | |
michael@0 | 55 | XPCSHELL_TESTS_MANIFESTS += ['unit/xpcshell.ini'] |
michael@0 | 56 | |
michael@0 | 57 | CPP_UNIT_TESTS += [ |
michael@0 | 58 | 'ShowAlignments.cpp', |
michael@0 | 59 | 'TestAutoPtr.cpp', |
michael@0 | 60 | 'TestAutoRef.cpp', |
michael@0 | 61 | 'TestCOMArray.cpp', |
michael@0 | 62 | 'TestCOMPtr.cpp', |
michael@0 | 63 | 'TestCOMPtrEq.cpp', |
michael@0 | 64 | 'TestDeque.cpp', |
michael@0 | 65 | 'TestFile.cpp', |
michael@0 | 66 | 'TestHashtables.cpp', |
michael@0 | 67 | 'TestID.cpp', |
michael@0 | 68 | 'TestObserverArray.cpp', |
michael@0 | 69 | 'TestObserverService.cpp', |
michael@0 | 70 | 'TestPipe.cpp', |
michael@0 | 71 | 'TestPLDHash.cpp', |
michael@0 | 72 | 'TestRefPtr.cpp', |
michael@0 | 73 | 'TestStringAPI.cpp', |
michael@0 | 74 | 'TestTArray.cpp', |
michael@0 | 75 | 'TestTextFormatter.cpp', |
michael@0 | 76 | 'TestThreadUtils.cpp' |
michael@0 | 77 | ] |
michael@0 | 78 | |
michael@0 | 79 | if CONFIG['MOZ_MEMORY']: |
michael@0 | 80 | CPP_UNIT_TESTS += [ |
michael@0 | 81 | 'TestJemalloc.cpp', |
michael@0 | 82 | ] |
michael@0 | 83 | |
michael@0 | 84 | # XXX Make these tests work in libxul builds. |
michael@0 | 85 | #CPP_UNIT_TESTS += [ |
michael@0 | 86 | # 'TestArray.cpp', |
michael@0 | 87 | # 'TestCRT.cpp', |
michael@0 | 88 | # 'TestEncoding.cpp', |
michael@0 | 89 | # 'TestExpirationTracker.cpp', |
michael@0 | 90 | # 'TestPipes.cpp', |
michael@0 | 91 | # 'TestPriorityQueue.cpp', |
michael@0 | 92 | # 'TestStorageStream.cpp', |
michael@0 | 93 | # 'TestStrings.cpp', |
michael@0 | 94 | # 'TestSynchronization.cpp', |
michael@0 | 95 | # 'TestTArray.cpp', |
michael@0 | 96 | # 'TestThreadPool.cpp', |
michael@0 | 97 | # 'TestThreads.cpp', |
michael@0 | 98 | # 'TestTimeStamp.cpp', |
michael@0 | 99 | # 'TestXPIDLString.cpp', |
michael@0 | 100 | # 'TestUTF.cpp', |
michael@0 | 101 | # 'TestAtoms.cpp', |
michael@0 | 102 | #] |
michael@0 | 103 | |
michael@0 | 104 | # FIXME: bug 577500 TestStaticAtoms fails when run in dist/bin |
michael@0 | 105 | #CPP_UNIT_TESTS += [ |
michael@0 | 106 | # 'TestStaticAtoms.cpp', |
michael@0 | 107 | #] |
michael@0 | 108 | |
michael@0 | 109 | if CONFIG['MOZ_DEBUG'] and CONFIG['OS_ARCH'] not in ('WINNT', 'Darwin'): |
michael@0 | 110 | # FIXME bug 523392: TestDeadlockDetector doesn't like Windows |
michael@0 | 111 | # FIXME bug 523378: also fails on OS X |
michael@0 | 112 | CPP_UNIT_TESTS += [ |
michael@0 | 113 | 'TestDeadlockDetector.cpp', |
michael@0 | 114 | 'TestDeadlockDetectorScalability.cpp', |
michael@0 | 115 | ] |
michael@0 | 116 | |
michael@0 | 117 | LOCAL_INCLUDES += [ |
michael@0 | 118 | '../ds', |
michael@0 | 119 | ] |
michael@0 | 120 | |
michael@0 | 121 | RESOURCE_FILES += [ |
michael@0 | 122 | 'test.properties', |
michael@0 | 123 | ] |