<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[161522] trunk/Tools</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/161522">161522</a></dd>
<dt>Author</dt> <dd>andersca@apple.com</dd>
<dt>Date</dt> <dd>2014-01-08 14:44:50 -0800 (Wed, 08 Jan 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>Remove WKConnectionRef tests
https://bugs.webkit.org/show_bug.cgi?id=126666

Reviewed by Dan Bernstein.

The WKConnectionRef is poorly designed but thankfully not used anywhere.
Remove the API tests as a first step towards killing the entire thing.

* TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
* TestWebKitAPI/Tests/WebKit2/WKConnection.cpp: Removed.
* TestWebKitAPI/Tests/WebKit2/WKConnection_Bundle.cpp: Removed.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkToolsChangeLog">trunk/Tools/ChangeLog</a></li>
<li><a href="#trunkToolsTestWebKitAPITestWebKitAPIxcodeprojprojectpbxproj">trunk/Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkToolsTestWebKitAPITestsWebKit2WKConnectioncpp">trunk/Tools/TestWebKitAPI/Tests/WebKit2/WKConnection.cpp</a></li>
<li><a href="#trunkToolsTestWebKitAPITestsWebKit2WKConnection_Bundlecpp">trunk/Tools/TestWebKitAPI/Tests/WebKit2/WKConnection_Bundle.cpp</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkToolsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Tools/ChangeLog (161521 => 161522)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/ChangeLog        2014-01-08 22:22:50 UTC (rev 161521)
+++ trunk/Tools/ChangeLog        2014-01-08 22:44:50 UTC (rev 161522)
</span><span class="lines">@@ -1,3 +1,17 @@
</span><ins>+2014-01-08  Anders Carlsson  &lt;andersca@apple.com&gt;
+
+        Remove WKConnectionRef tests
+        https://bugs.webkit.org/show_bug.cgi?id=126666
+
+        Reviewed by Dan Bernstein.
+
+        The WKConnectionRef is poorly designed but thankfully not used anywhere. 
+        Remove the API tests as a first step towards killing the entire thing.
+
+        * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
+        * TestWebKitAPI/Tests/WebKit2/WKConnection.cpp: Removed.
+        * TestWebKitAPI/Tests/WebKit2/WKConnection_Bundle.cpp: Removed.
+
</ins><span class="cx"> 2014-01-08  Commit Queue  &lt;commit-queue@webkit.org&gt;
</span><span class="cx"> 
</span><span class="cx">         Unreviewed, rolling out r161512.
</span></span></pre></div>
<a id="trunkToolsTestWebKitAPITestWebKitAPIxcodeprojprojectpbxproj"></a>
<div class="modfile"><h4>Modified: trunk/Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj (161521 => 161522)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj        2014-01-08 22:22:50 UTC (rev 161521)
+++ trunk/Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj        2014-01-08 22:44:50 UTC (rev 161522)
</span><span class="lines">@@ -176,8 +176,6 @@
</span><span class="cx">                 BC575BD9126F58E2006F0F12 /* PlatformUtilities.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC575BBF126F5752006F0F12 /* PlatformUtilities.cpp */; };
</span><span class="cx">                 BC575BE0126F590D006F0F12 /* PlatformUtilitiesMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = BC131884117114B600B69727 /* PlatformUtilitiesMac.mm */; };
</span><span class="cx">                 BC7B61AA129A038700D174A4 /* WKPreferences.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC7B619A1299FE9E00D174A4 /* WKPreferences.cpp */; };
</span><del>-                BC901E241492ADCE0074A667 /* WKConnection.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC901E221492ADCE0074A667 /* WKConnection.cpp */; };
-                BC901E331492AF390074A667 /* WKConnection_Bundle.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC901E311492AF390074A667 /* WKConnection_Bundle.cpp */; };
</del><span class="cx">                 BC90955D125548AA00083756 /* PlatformWebViewMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = BC90955C125548AA00083756 /* PlatformWebViewMac.mm */; };
</span><span class="cx">                 BC90977A125571AB00083756 /* PageLoadBasic.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC909779125571AB00083756 /* PageLoadBasic.cpp */; };
</span><span class="cx">                 BC909784125571CF00083756 /* simple.html in Copy Resources */ = {isa = PBXBuildFile; fileRef = BC909778125571AB00083756 /* simple.html */; };
</span><span class="lines">@@ -505,8 +503,6 @@
</span><span class="cx">                 BC575AE2126E88B1006F0F12 /* InjectedBundle.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = InjectedBundle.xcconfig; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 BC575BBF126F5752006F0F12 /* PlatformUtilities.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = PlatformUtilities.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 BC7B619A1299FE9E00D174A4 /* WKPreferences.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WKPreferences.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><del>-                BC901E221492ADCE0074A667 /* WKConnection.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WKConnection.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
-                BC901E311492AF390074A667 /* WKConnection_Bundle.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WKConnection_Bundle.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</del><span class="cx">                 BC90951B125533D700083756 /* PlatformWebView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PlatformWebView.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 BC90955C125548AA00083756 /* PlatformWebViewMac.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = PlatformWebViewMac.mm; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 BC90957E12554CF900083756 /* Base.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Base.xcconfig; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="lines">@@ -815,8 +811,6 @@
</span><span class="cx">                                 7CFBCAE31743238E00B2BFCF /* WillLoad_Bundle.cpp */,
</span><span class="cx">                                 76E182D91547550100F1FADD /* WillSendSubmitEvent.cpp */,
</span><span class="cx">                                 76E182DC1547569100F1FADD /* WillSendSubmitEvent_Bundle.cpp */,
</span><del>-                                BC901E221492ADCE0074A667 /* WKConnection.cpp */,
-                                BC901E311492AF390074A667 /* WKConnection_Bundle.cpp */,
</del><span class="cx">                                 51E93016156B13E1004C99DF /* WKPageGetScaleFactorNotZero.cpp */,
</span><span class="cx">                                 BC7B619A1299FE9E00D174A4 /* WKPreferences.cpp */,
</span><span class="cx">                                 BC90995D12567BC100083756 /* WKString.cpp */,
</span><span class="lines">@@ -1278,7 +1272,6 @@
</span><span class="cx">                                 F6B7BE9417469209008A3445 /* DidAssociateFormControls.cpp in Sources */,
</span><span class="cx">                                 BC3C4C7F14587AA60025FB62 /* WKBrowsingContextGroupTest.mm in Sources */,
</span><span class="cx">                                 BC3C4C7214575B6A0025FB62 /* WKBrowsingContextLoadDelegateTest.mm in Sources */,
</span><del>-                                BC901E241492ADCE0074A667 /* WKConnection.cpp in Sources */,
</del><span class="cx">                                 51E93017156B13E1004C99DF /* WKPageGetScaleFactorNotZero.cpp in Sources */,
</span><span class="cx">                                 BC7B61AA129A038700D174A4 /* WKPreferences.cpp in Sources */,
</span><span class="cx">                                 BC90995E12567BC100083756 /* WKString.cpp in Sources */,
</span><span class="lines">@@ -1325,7 +1318,6 @@
</span><span class="cx">                                 BC22D31914DC68B900FFB1DD /* UserMessage_Bundle.cpp in Sources */,
</span><span class="cx">                                 520BCF4C141EB09E00937EA8 /* WebArchive_Bundle.cpp in Sources */,
</span><span class="cx">                                 76E182DD1547569100F1FADD /* WillSendSubmitEvent_Bundle.cpp in Sources */,
</span><del>-                                BC901E331492AF390074A667 /* WKConnection_Bundle.cpp in Sources */,
</del><span class="cx">                         );
</span><span class="cx">                         runOnlyForDeploymentPostprocessing = 0;
</span><span class="cx">                 };
</span></span></pre></div>
<a id="trunkToolsTestWebKitAPITestsWebKit2WKConnectioncpp"></a>
<div class="delfile"><h4>Deleted: trunk/Tools/TestWebKitAPI/Tests/WebKit2/WKConnection.cpp (161521 => 161522)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/TestWebKitAPI/Tests/WebKit2/WKConnection.cpp        2014-01-08 22:22:50 UTC (rev 161521)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit2/WKConnection.cpp        2014-01-08 22:44:50 UTC (rev 161522)
</span><span class="lines">@@ -1,118 +0,0 @@
</span><del>-/*
- * Copyright (C) 2011 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include &quot;config.h&quot;
-#include &quot;PlatformUtilities.h&quot;
-#include &quot;PlatformWebView.h&quot;
-#include &quot;Test.h&quot;
-
-namespace TestWebKitAPI {
-
-// State for part 1 - setting up the connection.
-static bool connectionEstablished;
-static WKConnectionRef connectionToBundle;
-
-// State for part 2 - send/recieving messages.
-static bool messageReceived;
-
-// State for part 3 - tearing down the connection.
-static bool connectionTornDown;
-
-
-/* WKContextConnectionClient */
-static void didCreateConnection(WKContextRef context, WKConnectionRef connection, const void* clientInfo)
-{
-    connectionEstablished = true;
-
-    // Store off the conneciton to use.
-    connectionToBundle = (WKConnectionRef)WKRetain(connection);
-}
-
-/* WKConnectionClient */
-static void connectionDidReceiveMessage(WKConnectionRef connection, WKStringRef messageName, WKTypeRef messageBody, const void *clientInfo)
-{
-    // We only expect to get the &quot;Pong&quot; message.
-    EXPECT_WK_STREQ(messageName, &quot;PongMessageName&quot;);
-    EXPECT_WK_STREQ((WKStringRef)messageBody, &quot;PongMessageBody&quot;);
-
-    messageReceived = true;
-}
-
-static void connectionDidClose(WKConnectionRef connection, const void* clientInfo)
-{
-    connectionTornDown = true;
-}
-
-TEST(WebKit2, WKConnectionTest)
-{
-    WKRetainPtr&lt;WKContextRef&gt; context(AdoptWK, Util::createContextForInjectedBundleTest(&quot;WKConnectionTest&quot;));
-
-    // Set up the context's connection client so that we can access the connection when
-    // it is created.
-    WKContextConnectionClientV0 contextConnectionClient;
-    memset(&amp;contextConnectionClient, 0, sizeof(contextConnectionClient));
-
-    contextConnectionClient.base.version = kWKContextConnectionClientCurrentVersion;
-    contextConnectionClient.didCreateConnection = didCreateConnection;
-
-    WKContextSetConnectionClient(context.get(), &amp;contextConnectionClient.base);

-    // Load a simple page to start the WebProcess and establish a connection.
-    PlatformWebView webView(context.get());
-    WKRetainPtr&lt;WKURLRef&gt; url(AdoptWK, Util::createURLForResource(&quot;simple&quot;, &quot;html&quot;));
-    WKPageLoadURL(webView.page(), url.get());
-
-    // Wait until the connection is established.
-    Util::run(&amp;connectionEstablished);
-    ASSERT_NOT_NULL(connectionToBundle);
-
-    // Setup a client on the connection so we can listen for messages and
-    // tear down notifications.
-    WKConnectionClientV0 connectionClient;
-    memset(&amp;connectionClient, 0, sizeof(connectionClient));
-
-    connectionClient.base.version = 0;
-    connectionClient.didReceiveMessage = connectionDidReceiveMessage;
-    connectionClient.didClose = connectionDidClose;
-
-    WKConnectionSetConnectionClient(connectionToBundle, &amp;connectionClient.base);
-    
-    // Post a simple message to the bundle via the connection.
-    WKConnectionPostMessage(connectionToBundle, Util::toWK(&quot;PingMessageName&quot;).get(), Util::toWK(&quot;PingMessageBody&quot;).get());
-
-    // Wait for the reply.
-    Util::run(&amp;messageReceived);
-
-    // Terminate the page to force the connection closed.
-    WKPageTerminate(webView.page());
-    
-    // Wait for the connection to close.
-    Util::run(&amp;connectionTornDown);
-
-    // This release is to balance the retain in didCreateConnection.
-    WKRelease(connectionToBundle);
-}
-
-} // namespace TestWebKitAPI
</del></span></pre></div>
<a id="trunkToolsTestWebKitAPITestsWebKit2WKConnection_Bundlecpp"></a>
<div class="delfile"><h4>Deleted: trunk/Tools/TestWebKitAPI/Tests/WebKit2/WKConnection_Bundle.cpp (161521 => 161522)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/TestWebKitAPI/Tests/WebKit2/WKConnection_Bundle.cpp        2014-01-08 22:22:50 UTC (rev 161521)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit2/WKConnection_Bundle.cpp        2014-01-08 22:44:50 UTC (rev 161522)
</span><span class="lines">@@ -1,61 +0,0 @@
</span><del>-/*
- * Copyright (C) 2011 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include &quot;config.h&quot;
-#include &quot;InjectedBundleTest.h&quot;
-#include &quot;PlatformUtilities.h&quot;
-#include &lt;WebKit2/WKRetainPtr.h&gt;
-
-namespace TestWebKitAPI {
-
-/* WKConnectionClient */
-static void connectionDidReceiveMessage(WKConnectionRef connection, WKStringRef messageName, WKTypeRef messageBody, const void *clientInfo)
-{
-    // Post a simple message to the back to the application layer.
-    WKConnectionPostMessage(connection, Util::toWK(&quot;PongMessageName&quot;).get(), Util::toWK(&quot;PongMessageBody&quot;).get());
-}
-
-class WKConnectionTest : public InjectedBundleTest {
-public:
-    WKConnectionTest(const std::string&amp; identifier)
-        : InjectedBundleTest(identifier)
-    {
-    }
-
-    virtual void initialize(WKBundleRef bundle, WKTypeRef)
-    {
-        WKConnectionClientV0 connectionClient;
-        memset(&amp;connectionClient, 0, sizeof(connectionClient));
-
-        connectionClient.base.version = WKConnectionClientCurrentVersion;
-        connectionClient.didReceiveMessage = connectionDidReceiveMessage;
-
-        WKConnectionSetConnectionClient(WKBundleGetApplicationConnection(bundle), &amp;connectionClient.base);
-    }
-};
-
-static InjectedBundleTest::Register&lt;WKConnectionTest&gt; registrar(&quot;WKConnectionTest&quot;);
-
-} // namespace TestWebKitAPI
</del></span></pre>
</div>
</div>

</body>
</html>