Tue, 06 Jan 2015 21:39:09 +0100
Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.
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 if CONFIG['OS_TARGET'] != 'WINNT' and CONFIG['MOZ_WIDGET_TOOLKIT'] != 'gonk':
8 CPP_UNIT_TESTS += [
9 'buffered_stun_socket_unittest.cpp',
10 'nrappkit_unittest.cpp',
11 'rlogringbuffer_unittest.cpp',
12 'runnable_utils_unittest.cpp',
13 'simpletokenbucket_unittest.cpp',
14 'sockettransportservice_unittest.cpp',
15 'TestSyncRunnable.cpp',
16 'transport_unittests.cpp',
17 'turn_unittest.cpp',
18 ]
20 # Bug 1037618 - Cross-tree (network related?) failures on OSX
21 if CONFIG['OS_TARGET'] != 'Darwin':
22 CPP_UNIT_TESTS += [
23 'ice_unittest.cpp',
24 ]
26 if CONFIG['MOZ_SCTP']:
27 CPP_UNIT_TESTS += [
28 'sctp_unittest.cpp',
29 ]
31 FAIL_ON_WARNINGS = True
33 for var in ('HAVE_STRDUP', 'NR_SOCKET_IS_VOID_PTR', 'SCTP_DEBUG', 'INET'):
34 DEFINES[var] = True
36 if CONFIG['OS_TARGET'] == 'Android':
37 LOCAL_INCLUDES += [
38 '/media/mtransport/third_party/nrappkit/src/port/android/include',
39 ]
40 else:
41 DEFINES['INET6'] = True
43 if CONFIG['OS_TARGET'] == 'Linux':
44 LOCAL_INCLUDES += [
45 '/media/mtransport/third_party/nrappkit/src/port/linux/include',
46 ]
48 if CONFIG['OS_TARGET'] == 'Darwin':
49 LOCAL_INCLUDES += [
50 '/media/mtransport/third_party/nrappkit/src/port/darwin/include',
51 ]
53 if CONFIG['OS_TARGET'] in ('DragonFly', 'FreeBSD', 'NetBSD', 'OpenBSD'):
54 LOCAL_INCLUDES += [
55 '/media/mtransport/third_party/nrappkit/src/port/darwin/include',
56 '/media/mtransport/third_party/nrappkit/src/port/generic/include',
57 ]
59 # SCTP DEFINES
60 if CONFIG['OS_TARGET'] == 'WINNT':
61 DEFINES['__Userspace_os_Windows'] = 1
62 else:
63 # Works for Darwin, Linux, Android. Probably doesn't work for others.
64 DEFINES['__Userspace_os_%s' % CONFIG['OS_TARGET']] = 1
66 if CONFIG['OS_TARGET'] in ('Darwin', 'Android'):
67 DEFINES['GTEST_USE_OWN_TR1_TUPLE'] = 1
69 LOCAL_INCLUDES += [
70 '/media/mtransport/',
71 '/media/mtransport/third_party/',
72 '/media/mtransport/third_party/nICEr/src/crypto',
73 '/media/mtransport/third_party/nICEr/src/ice',
74 '/media/mtransport/third_party/nICEr/src/net',
75 '/media/mtransport/third_party/nICEr/src/stun',
76 '/media/mtransport/third_party/nICEr/src/util',
77 '/media/mtransport/third_party/nrappkit/src/event',
78 '/media/mtransport/third_party/nrappkit/src/log',
79 '/media/mtransport/third_party/nrappkit/src/plugin',
80 '/media/mtransport/third_party/nrappkit/src/registry',
81 '/media/mtransport/third_party/nrappkit/src/share',
82 '/media/mtransport/third_party/nrappkit/src/stats',
83 '/media/mtransport/third_party/nrappkit/src/util/',
84 '/media/mtransport/third_party/nrappkit/src/util/libekr',
85 '/media/webrtc/trunk/testing/gtest/include/',
86 '/netwerk/sctp/src/',
87 ]