moz.build (2429B)
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/. 6 7 UNIFIED_SOURCES += [ 8 "TestBase64Stream.cpp", 9 "TestBind.cpp", 10 "TestBufferedInputStream.cpp", 11 "TestCacheControlParser.cpp", 12 "TestCacheIndex.cpp", 13 "TestCapsule.cpp", 14 "TestCommon.cpp", 15 "TestCookie.cpp", 16 "TestDNSPacket.cpp", 17 "TestEtcHostsParsing.cpp", 18 "TestHeaders.cpp", 19 "TestHostRecordQueue.cpp", 20 "TestHttp2WebTransport.cpp", 21 "TestHttp3ConnectUDPStream.cpp", 22 "TestHttpAtom.cpp", 23 "TestHttpAuthUtils.cpp", 24 "TestHttpChannel.cpp", 25 "TestHttpResponseHead.cpp", 26 "TestIDNA.cpp", 27 "TestInputStreamTransport.cpp", 28 "TestIsValidIp.cpp", 29 "TestLinkHeader.cpp", 30 "TestLocalNetworkAccess.cpp", 31 "TestMIMEInputStream.cpp", 32 "TestMozURL.cpp", 33 "TestPACMan.cpp", 34 "TestParseHeaders.cpp", 35 "TestPollableEvent.cpp", 36 "TestProtocolProxyService.cpp", 37 "TestReadStreamToString.cpp", 38 "TestServerTimingHeader.cpp", 39 "TestSocketTransportService.cpp", 40 "TestSSLTokensCache.cpp", 41 "TestStandardURL.cpp", 42 "TestStorageAccessHeader.cpp", 43 "TestUDPSocket.cpp", 44 "TestURIMutator.cpp", 45 "TestUriTemplate.cpp", 46 "TestURLPatternGlue.cpp", 47 "TestUseAsDictionary.cpp", 48 "TestWebTransportFlowControl.cpp", 49 ] 50 51 if CONFIG["OS_TARGET"] == "WINNT": 52 UNIFIED_SOURCES += [ 53 "TestNamedPipeService.cpp", 54 "TestNetworkLinkIdHashingWindows.cpp", 55 ] 56 57 # run the test on mac only 58 if CONFIG["TARGET_OS"] == "OSX": 59 UNIFIED_SOURCES += ["TestNetworkLinkIdHashingDarwin.cpp"] 60 61 TEST_HARNESS_FILES.gtest += [ 62 "urltestdata.json", 63 ] 64 65 USE_LIBS += [ 66 "jsoncpp", 67 ] 68 69 LOCAL_INCLUDES += [ 70 "/netwerk/base", 71 "/netwerk/cache2", 72 "/netwerk/cookie", 73 "/netwerk/dns", 74 "/netwerk/protocol/http", 75 "/toolkit/components/jsoncpp/include", 76 "/xpcom/tests/gtest", 77 ] 78 79 # windows includes only 80 if CONFIG["OS_TARGET"] == "WINNT": 81 LOCAL_INCLUDES += ["/netwerk/system/win32"] 82 83 # mac includes only 84 if CONFIG["TARGET_OS"] == "OSX": 85 LOCAL_INCLUDES += ["/netwerk/system/mac"] 86 87 include("/ipc/chromium/chromium-config.mozbuild") 88 89 FINAL_LIBRARY = "xul-gtest" 90 91 LOCAL_INCLUDES += ["!/xpcom", "/xpcom/components"]