Title: [261414] trunk/Tools
Revision
261414
Author
[email protected]
Date
2020-05-08 13:57:57 -0700 (Fri, 08 May 2020)

Log Message

Fix build on platforms without network framework.
https://bugs.webkit.org/show_bug.cgi?id=211603

* TestWebKitAPI/Tests/WebKitCocoa/NetworkProcess.mm:
Add HAVE(NETWORK_FRAMEWORK) around test that uses network framework.

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (261413 => 261414)


--- trunk/Tools/ChangeLog	2020-05-08 20:48:47 UTC (rev 261413)
+++ trunk/Tools/ChangeLog	2020-05-08 20:57:57 UTC (rev 261414)
@@ -1,3 +1,11 @@
+2020-05-08  Alex Christensen  <[email protected]>
+
+        Fix build on platforms without network framework.
+        https://bugs.webkit.org/show_bug.cgi?id=211603
+
+        * TestWebKitAPI/Tests/WebKitCocoa/NetworkProcess.mm:
+        Add HAVE(NETWORK_FRAMEWORK) around test that uses network framework.
+
 2020-05-08  Aakash Jain  <[email protected]>
 
         Delete old ews client side code

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/NetworkProcess.mm (261413 => 261414)


--- trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/NetworkProcess.mm	2020-05-08 20:48:47 UTC (rev 261413)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/NetworkProcess.mm	2020-05-08 20:57:57 UTC (rev 261414)
@@ -31,6 +31,7 @@
 #import <WebKit/WKProcessPoolPrivate.h>
 #import <wtf/BlockPtr.h>
 #import <wtf/RetainPtr.h>
+#import <wtf/Vector.h>
 
 TEST(WebKit, NetworkProcessEntitlements)
 {
@@ -46,6 +47,8 @@
     EXPECT_FALSE([pool _networkProcessHasEntitlementForTesting:@"test failure case"]);
 }
 
+#if HAVE(NETWORK_FRAMEWORK)
+
 TEST(WebKit, HTTPReferer)
 {
     auto checkReferer = [] (NSURL *baseURL, const char* expectedReferer) {
@@ -79,3 +82,5 @@
     checkReferer([NSURL URLWithString:longHost], nullptr);
     checkReferer([NSURL URLWithString:shorterHost], shorterHost.UTF8String);
 }
+
+#endif
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to