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