<!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>[160794] 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/160794">160794</a></dd>
<dt>Author</dt> <dd>andersca@apple.com</dd>
<dt>Date</dt> <dd>2013-12-18 13:36:19 -0800 (Wed, 18 Dec 2013)</dd>
</dl>

<h3>Log Message</h3>
<pre>Remove now useless test.

* TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
* TestWebKitAPI/Tests/WebKit2ObjC/WKRemoteObjectRegistry.mm: Removed.
* TestWebKitAPI/Tests/mac/WKRemoteObjectRegistry_Bundle.mm: Removed.
* TestWebKitAPI/Tests/mac/WKRemoteObjectRegistry_Shared.h: 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="#trunkToolsTestWebKitAPITestsWebKit2ObjCWKRemoteObjectRegistrymm">trunk/Tools/TestWebKitAPI/Tests/WebKit2ObjC/WKRemoteObjectRegistry.mm</a></li>
<li><a href="#trunkToolsTestWebKitAPITestsmacWKRemoteObjectRegistry_Bundlemm">trunk/Tools/TestWebKitAPI/Tests/mac/WKRemoteObjectRegistry_Bundle.mm</a></li>
<li><a href="#trunkToolsTestWebKitAPITestsmacWKRemoteObjectRegistry_Sharedh">trunk/Tools/TestWebKitAPI/Tests/mac/WKRemoteObjectRegistry_Shared.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkToolsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Tools/ChangeLog (160793 => 160794)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/ChangeLog        2013-12-18 21:08:35 UTC (rev 160793)
+++ trunk/Tools/ChangeLog        2013-12-18 21:36:19 UTC (rev 160794)
</span><span class="lines">@@ -1,3 +1,12 @@
</span><ins>+2013-12-18  Anders Carlsson  &lt;andersca@apple.com&gt;
+
+        Remove now useless test.
+
+        * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
+        * TestWebKitAPI/Tests/WebKit2ObjC/WKRemoteObjectRegistry.mm: Removed.
+        * TestWebKitAPI/Tests/mac/WKRemoteObjectRegistry_Bundle.mm: Removed.
+        * TestWebKitAPI/Tests/mac/WKRemoteObjectRegistry_Shared.h: Removed.
+
</ins><span class="cx"> 2013-12-18  Gavin Barraclough  &lt;barraclough@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Fix page visibility api test, initialization in WebKit2
</span></span></pre></div>
<a id="trunkToolsTestWebKitAPITestWebKitAPIxcodeprojprojectpbxproj"></a>
<div class="modfile"><h4>Modified: trunk/Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj (160793 => 160794)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj        2013-12-18 21:08:35 UTC (rev 160793)
+++ trunk/Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj        2013-12-18 21:36:19 UTC (rev 160794)
</span><span class="lines">@@ -23,8 +23,6 @@
</span><span class="cx">                 1A7BFC0C171A0BDB00BC5F64 /* WillSendSubmitEvent.mm in Sources */ = {isa = PBXBuildFile; fileRef = 1A7BFC0A171A0BDB00BC5F64 /* WillSendSubmitEvent.mm */; };
</span><span class="cx">                 1A7E8B34181208DE00AEB74A /* FragmentNavigation.mm in Sources */ = {isa = PBXBuildFile; fileRef = 1A7E8B33181208DE00AEB74A /* FragmentNavigation.mm */; };
</span><span class="cx">                 1A7E8B3618120B2F00AEB74A /* FragmentNavigation.html in Copy Resources */ = {isa = PBXBuildFile; fileRef = 1A7E8B351812093600AEB74A /* FragmentNavigation.html */; };
</span><del>-                1A9E3291182187F800F5D04C /* WKRemoteObjectRegistry.mm in Sources */ = {isa = PBXBuildFile; fileRef = 1A9E328F182187F800F5D04C /* WKRemoteObjectRegistry.mm */; };
-                1A9E32941821945C00F5D04C /* WKRemoteObjectRegistry_Bundle.mm in Sources */ = {isa = PBXBuildFile; fileRef = 1A9E32921821945C00F5D04C /* WKRemoteObjectRegistry_Bundle.mm */; };
</del><span class="cx">                 1A9E52C913E65EF4006917F5 /* 18-characters.html in Copy Resources */ = {isa = PBXBuildFile; fileRef = C045F9461385C2F800C0F3CD /* 18-characters.html */; };
</span><span class="cx">                 1AA9BAE418500450003B6BC6 /* WeakObjCPtr.mm in Sources */ = {isa = PBXBuildFile; fileRef = 1AA9BAE218500450003B6BC6 /* WeakObjCPtr.mm */; };
</span><span class="cx">                 1AA9E55914980A9900001A8A /* Functional.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AA9E55714980A9900001A8A /* Functional.cpp */; };
</span><span class="lines">@@ -349,9 +347,6 @@
</span><span class="cx">                 1A7BFC0A171A0BDB00BC5F64 /* WillSendSubmitEvent.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WillSendSubmitEvent.mm; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 1A7E8B33181208DE00AEB74A /* FragmentNavigation.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = FragmentNavigation.mm; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 1A7E8B351812093600AEB74A /* FragmentNavigation.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = FragmentNavigation.html; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><del>-                1A9E328F182187F800F5D04C /* WKRemoteObjectRegistry.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = WKRemoteObjectRegistry.mm; path = WebKit2ObjC/WKRemoteObjectRegistry.mm; sourceTree = &quot;&lt;group&gt;&quot;; };
-                1A9E32921821945C00F5D04C /* WKRemoteObjectRegistry_Bundle.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = WKRemoteObjectRegistry_Bundle.mm; path = mac/WKRemoteObjectRegistry_Bundle.mm; sourceTree = &quot;&lt;group&gt;&quot;; };
-                1A9E329518219AE100F5D04C /* WKRemoteObjectRegistry_Shared.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = WKRemoteObjectRegistry_Shared.h; path = mac/WKRemoteObjectRegistry_Shared.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</del><span class="cx">                 1AA9BAE218500450003B6BC6 /* WeakObjCPtr.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WeakObjCPtr.mm; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 1AA9E55714980A9900001A8A /* Functional.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Functional.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 1ADBEFAD130C689C00D61D19 /* ForceRepaint.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ForceRepaint.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="lines">@@ -714,9 +709,6 @@
</span><span class="cx">                                 2943BE84161DFEB800999E3D /* UserContentTest.mm */,
</span><span class="cx">                                 BC3C4C7D14587AA60025FB62 /* WKBrowsingContextGroupTest.mm */,
</span><span class="cx">                                 BC3C4C7014575B6A0025FB62 /* WKBrowsingContextLoadDelegateTest.mm */,
</span><del>-                                1A9E328F182187F800F5D04C /* WKRemoteObjectRegistry.mm */,
-                                1A9E32921821945C00F5D04C /* WKRemoteObjectRegistry_Bundle.mm */,
-                                1A9E329518219AE100F5D04C /* WKRemoteObjectRegistry_Shared.h */,
</del><span class="cx">                         );
</span><span class="cx">                         name = &quot;WebKit2 Objective-C&quot;;
</span><span class="cx">                         sourceTree = &quot;&lt;group&gt;&quot;;
</span><span class="lines">@@ -1292,7 +1284,6 @@
</span><span class="cx">                                 BC3C4C7214575B6A0025FB62 /* WKBrowsingContextLoadDelegateTest.mm in Sources */,
</span><span class="cx">                                 BC901E241492ADCE0074A667 /* WKConnection.cpp in Sources */,
</span><span class="cx">                                 51E93017156B13E1004C99DF /* WKPageGetScaleFactorNotZero.cpp in Sources */,
</span><del>-                                1A9E3291182187F800F5D04C /* WKRemoteObjectRegistry.mm in Sources */,
</del><span class="cx">                                 BC7B61AA129A038700D174A4 /* WKPreferences.cpp in Sources */,
</span><span class="cx">                                 BC90995E12567BC100083756 /* WKString.cpp in Sources */,
</span><span class="cx">                                 BC9099941256ACF100083756 /* WKStringJSString.cpp in Sources */,
</span><span class="lines">@@ -1338,7 +1329,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>-                                1A9E32941821945C00F5D04C /* WKRemoteObjectRegistry_Bundle.mm in Sources */,
</del><span class="cx">                                 BC901E331492AF390074A667 /* WKConnection_Bundle.cpp in Sources */,
</span><span class="cx">                         );
</span><span class="cx">                         runOnlyForDeploymentPostprocessing = 0;
</span></span></pre></div>
<a id="trunkToolsTestWebKitAPITestsWebKit2ObjCWKRemoteObjectRegistrymm"></a>
<div class="delfile"><h4>Deleted: trunk/Tools/TestWebKitAPI/Tests/WebKit2ObjC/WKRemoteObjectRegistry.mm (160793 => 160794)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/TestWebKitAPI/Tests/WebKit2ObjC/WKRemoteObjectRegistry.mm        2013-12-18 21:08:35 UTC (rev 160793)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit2ObjC/WKRemoteObjectRegistry.mm        2013-12-18 21:36:19 UTC (rev 160794)
</span><span class="lines">@@ -1,121 +0,0 @@
</span><del>-/*
- * Copyright (C) 2013 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.
- */
-
-#import &quot;config.h&quot;
-#import &quot;Test.h&quot;
-
-#import &quot;WKRemoteObjectRegistry_Shared.h&quot;
-#import &quot;PlatformUtilities.h&quot;
-#import &quot;PlatformWebView.h&quot;
-#import &lt;WebKit2/WKRetainPtr.h&gt;
-#import &lt;WebKit2/WKRemoteObjectInterface.h&gt;
-#import &lt;WebKit2/WKRemoteObjectRegistryPrivate.h&gt;
-
-#if WK_API_ENABLED
-
-namespace TestWebKitAPI {
-
-static bool connectionEstablished;
-static WKRemoteObjectRegistry *remoteObjectRegistry;
-static bool testFinished;
-
-/* WKConnectionClient */
-static void connectionDidReceiveMessage(WKConnectionRef connection, WKStringRef messageName, WKTypeRef messageBody, const void *clientInfo)
-{
-    // FIXME: Implement this.
-}
-
-static void connectionDidClose(WKConnectionRef connection, const void* clientInfo)
-{
-    // FIXME: Implement this.
-}
-
-/* WKContextConnectionClient */
-static void didCreateConnection(WKContextRef context, WKConnectionRef connection, const void* clientInfo)
-{
-    connectionEstablished = true;
-
-    // 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(connection, &amp;connectionClient.base);
-
-    // Store off the conneciton to use.
-    remoteObjectRegistry = [[WKRemoteObjectRegistry alloc] _initWithConnectionRef:connection];
-}
-
-TEST(WebKit2, WKRemoteObjectRegistryTest)
-{
-    WKRetainPtr&lt;WKContextRef&gt; context(AdoptWK, Util::createContextForInjectedBundleTest(&quot;WKRemoteObjectRegistry&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 = 0;
-    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(remoteObjectRegistry);
-
-    WKRemoteObjectInterface *bundleInterface = [WKRemoteObjectInterface remoteObjectInterfaceWithProtocol:@protocol(BundleInterface)];
-
-    id &lt;BundleInterface&gt; remoteObjectProxy = [remoteObjectRegistry remoteObjectProxyWithInterface:bundleInterface];
-    EXPECT_TRUE([remoteObjectProxy conformsToProtocol:@protocol(BundleInterface)]);
-
-    [remoteObjectProxy sayHello];
-    [remoteObjectProxy testMethodWithString:@&quot;Hello&quot; double:123.456 integer:789];
-
-#if __MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 1090
-    NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@&quot;http://www.webkit.org/&quot; relativeToURL:[NSURL URLWithString:@&quot;http://www.webkit.org/&quot;]] cachePolicy:NSURLRequestReloadIgnoringCacheData timeoutInterval:123.456];
-
-    [remoteObjectProxy testMethodWithArray:@[ @1, @2, @3 ] dictionary:@{ @&quot;Key&quot; : @&quot;Value&quot;, @123 : @456 } request:request];
-#endif
-
-    // FIXME: Set this once the test actually is finished.
-    testFinished = true;
-
-    Util::run(&amp;testFinished);
-}
-
-} // namespace TestWebKitAPI
-
-#endif // WK_API_ENABLED
-
</del></span></pre></div>
<a id="trunkToolsTestWebKitAPITestsmacWKRemoteObjectRegistry_Bundlemm"></a>
<div class="delfile"><h4>Deleted: trunk/Tools/TestWebKitAPI/Tests/mac/WKRemoteObjectRegistry_Bundle.mm (160793 => 160794)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/TestWebKitAPI/Tests/mac/WKRemoteObjectRegistry_Bundle.mm        2013-12-18 21:08:35 UTC (rev 160793)
+++ trunk/Tools/TestWebKitAPI/Tests/mac/WKRemoteObjectRegistry_Bundle.mm        2013-12-18 21:36:19 UTC (rev 160794)
</span><span class="lines">@@ -1,100 +0,0 @@
</span><del>-/*
- * Copyright (C) 2013 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.
- */
-
-#import &quot;config.h&quot;
-#import &quot;InjectedBundleTest.h&quot;
-
-#import &quot;PlatformUtilities.h&quot;
-#import &quot;WKRemoteObjectRegistry_Shared.h&quot;
-#import &lt;WebKit2/WKRemoteObjectRegistryPrivate.h&gt;
-#import &lt;WebKit2/WKRemoteObjectInterface.h&gt;
-#import &lt;WebKit2/WKRetainPtr.h&gt;
-#import &lt;wtf/RetainPtr.h&gt;
-
-#if WK_API_ENABLED
-
-@interface BundleObject : NSObject &lt;BundleInterface&gt;
-@end
-
-@implementation BundleObject
-
-- (void)sayHello
-{
-    // FIXME: Implement.
-}
-
-- (void)testMethodWithString:(NSString *)string double:(double)d integer:(int)i
-{
-    // FIXME: Implement.
-}
-
-- (void)testMethodWithArray:(NSArray *)array dictionary:(NSDictionary *)dictinoary request:(NSURLRequest *)request
-{
-    // FIXME: Implement.
-}
-
-@end
-
-namespace TestWebKitAPI {
-
-class WKRemoteObjectRegistryTest : public InjectedBundleTest {
-public:
-    WKRemoteObjectRegistryTest(const std::string&amp; identifier)
-        : InjectedBundleTest(identifier)
-    {
-    }
-
-    virtual void initialize(WKBundleRef bundle, WKTypeRef) override
-    {
-        m_objectRegistry = adoptNS([[WKRemoteObjectRegistry alloc] _initWithConnectionRef:WKBundleGetApplicationConnection(bundle)]);
-
-        WKRemoteObjectInterface *bundleInterface = [WKRemoteObjectInterface remoteObjectInterfaceWithProtocol:@protocol(BundleInterface)];
-
-        BundleObject *bundleObject = [[BundleObject alloc] init];
-        [m_objectRegistry registerExportedObject:bundleObject interface:bundleInterface];
-
-        WKConnectionClientV0 connectionClient;
-        memset(&amp;connectionClient, 0, sizeof(connectionClient));
-
-        connectionClient.base.version = WKConnectionClientCurrentVersion;
-        connectionClient.base.clientInfo = this;
-        connectionClient.didReceiveMessage = [](WKConnectionRef connection, WKStringRef messageName, WKTypeRef messageBody, const void *clientInfo) {
-            const WKRemoteObjectRegistryTest* test = static_cast&lt;const WKRemoteObjectRegistryTest*&gt;(clientInfo);
-
-            [test-&gt;m_objectRegistry.get() _handleMessageWithName:messageName body:messageBody];
-        };
-
-        WKConnectionSetConnectionClient(WKBundleGetApplicationConnection(bundle), &amp;connectionClient.base);
-    }
-
-private:
-    RetainPtr&lt;WKRemoteObjectRegistry&gt; m_objectRegistry;
-};
-
-static InjectedBundleTest::Register&lt;WKRemoteObjectRegistryTest&gt; registrar(&quot;WKRemoteObjectRegistry&quot;);
-
-} // namespace TestWebKitAPI
-
-#endif // WK_API_ENABLED
</del></span></pre></div>
<a id="trunkToolsTestWebKitAPITestsmacWKRemoteObjectRegistry_Sharedh"></a>
<div class="delfile"><h4>Deleted: trunk/Tools/TestWebKitAPI/Tests/mac/WKRemoteObjectRegistry_Shared.h (160793 => 160794)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/TestWebKitAPI/Tests/mac/WKRemoteObjectRegistry_Shared.h        2013-12-18 21:08:35 UTC (rev 160793)
+++ trunk/Tools/TestWebKitAPI/Tests/mac/WKRemoteObjectRegistry_Shared.h        2013-12-18 21:36:19 UTC (rev 160794)
</span><span class="lines">@@ -1,32 +0,0 @@
</span><del>-/*
- * Copyright (C) 2013 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.
- */
-
-@protocol BundleInterface &lt;NSObject&gt;
-
-- (void)sayHello;
-- (void)testMethodWithString:(NSString *)string double:(double)d integer:(int)i;
-- (void)testMethodWithArray:(NSArray *)array dictionary:(NSDictionary *)dictinoary request:(NSURLRequest *)request;
-
-@end
</del></span></pre>
</div>
</div>

</body>
</html>