[WinCairo] DumpRenderTree.cpp: error C3861: 'CFURLCacheCreate': identifier not found
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 15 Jun 2017 07:18:32 +0000 (07:18 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 15 Jun 2017 07:18:32 +0000 (07:18 +0000)
https://bugs.webkit.org/show_bug.cgi?id=173399

Patch by Fujii Hironori <Hironori.Fujii@sony.com> on 2017-06-15
Reviewed by Per Arne Vollan.

OpenCFLite doesn't have CFURLCacheCreate and CFURLCacheSetSharedURLCache.
Curl port needs to do nothing because libcurl doesn't have disk cache.

* DumpRenderTree/win/DumpRenderTree.cpp:
(prepareConsistentTestingEnvironment): Call CFURLCacheCreate() and
CFURLCacheSetSharedURLCache() only if USE(CFURLCONNECTION).

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@218320 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/ChangeLog
Tools/DumpRenderTree/win/DumpRenderTree.cpp

index 7e1038d..a6aed8c 100644 (file)
@@ -1,3 +1,17 @@
+2017-06-15  Fujii Hironori  <Hironori.Fujii@sony.com>
+
+        [WinCairo] DumpRenderTree.cpp: error C3861: 'CFURLCacheCreate': identifier not found
+        https://bugs.webkit.org/show_bug.cgi?id=173399
+
+        Reviewed by Per Arne Vollan.
+
+        OpenCFLite doesn't have CFURLCacheCreate and CFURLCacheSetSharedURLCache.
+        Curl port needs to do nothing because libcurl doesn't have disk cache.
+
+        * DumpRenderTree/win/DumpRenderTree.cpp:
+        (prepareConsistentTestingEnvironment): Call CFURLCacheCreate() and
+        CFURLCacheSetSharedURLCache() only if USE(CFURLCONNECTION).
+
 2017-06-14  Tomas Popela  <tpopela@redhat.com>
 
         [GTK] integer expression expected if running Tools/gtk/install-dependencies
index 7e36d5d..dccf94d 100644 (file)
@@ -1466,8 +1466,10 @@ static void prepareConsistentTestingEnvironment(IWebPreferences* standardPrefere
     ASSERT(standardPreferencesPrivate);
     standardPreferences->setAutosaves(FALSE);
 
+#if USE(CFURLCONNECTION)
     auto newCache = adoptCF(CFURLCacheCreate(kCFAllocatorDefault, 1024 * 1024, 0, nullptr));
     CFURLCacheSetSharedURLCache(newCache.get());
+#endif
 
     COMPtr<IWebPreferencesPrivate4> prefsPrivate4(Query, standardPreferences);
     prefsPrivate4->switchNetworkLoaderToNewTestingSession();