⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 285961 in webkit


Ignore:
Timestamp:
Nov 17, 2021, 3:43:39 PM (5 years ago)
Author:
commit-queue@webkit.org
Message:

Enable adattributiond testing on iOS simulator
https://bugs.webkit.org/show_bug.cgi?id=233285

Patch by Alex Christensen <achristensen@webkit.org> on 2021-11-17
Reviewed by Brady Eidson.

  • TestWebKitAPI/Tests/WebKitCocoa/EventAttribution.mm:

(TestWebKitAPI::testDaemonPList):
(TestWebKitAPI::cleanUpDaemon):
(TestWebKitAPI::TEST):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r285960 r285961  
     12021-11-17  Alex Christensen  <achristensen@webkit.org>
     2
     3        Enable adattributiond testing on iOS simulator
     4        https://bugs.webkit.org/show_bug.cgi?id=233285
     5
     6        Reviewed by Brady Eidson.
     7
     8        * TestWebKitAPI/Tests/WebKitCocoa/EventAttribution.mm:
     9        (TestWebKitAPI::testDaemonPList):
     10        (TestWebKitAPI::cleanUpDaemon):
     11        (TestWebKitAPI::TEST):
     12
    1132021-11-17  Ryan Haddad  <ryanhaddad@apple.com>
    214
  • trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/EventAttribution.mm

    r285547 r285961  
    408408}
    409409
    410 // FIXME: Get this working in the iOS simulator.
    411 #if PLATFORM(MAC)
     410#if PLATFORM(MAC) || PLATFORM(IOS)
    412411
    413412static RetainPtr<NSURL> testPCMDaemonLocation()
     
    423422    xpc_dictionary_set_string(plist.get(), "_ManagedBy", "TestWebKitAPI");
    424423    xpc_dictionary_set_string(plist.get(), "Label", "org.webkit.pcmtestdaemon");
     424    xpc_dictionary_set_bool(plist.get(), "RootedSimulatorPath", true);
    425425    xpc_dictionary_set_bool(plist.get(), "LaunchOnlyOnce", true);
    426426    xpc_dictionary_set_string(plist.get(), "StandardErrorPath", [storageLocation URLByAppendingPathComponent:@"daemon_stderr"].path.fileSystemRepresentation);
     
    480480    EXPECT_NULL(error);
    481481
    482     system("killall adattributiond -9 2> /dev/null");
     482    killFirstInstanceOfDaemon(@"adattributiond");
    483483
    484484    auto plist = testDaemonPList(tempDir);
     
    497497static void cleanUpDaemon(NSURL *tempDir)
    498498{
    499     system("killall adattributiond -9");
     499    killFirstInstanceOfDaemon(@"adattributiond");
    500500
    501501    EXPECT_TRUE([[NSFileManager defaultManager] fileExistsAtPath:tempDir.path]);
     
    531531}
    532532
     533#if PLATFORM(MAC)
    533534static void setInjectedBundleClient(WKWebView *webView, Vector<String>& consoleMessages)
    534535{
     
    587588    EXPECT_WK_STREQ(consoleMessages[1], "[Private Click Measurement] Turned Debug Mode off.");
    588589}
    589 
    590590#endif // PLATFORM(MAC)
     591
     592#endif // PLATFORM(MAC) || PLATFORM(IOS)
    591593
    592594#if HAVE(UI_EVENT_ATTRIBUTION)
Note: See TracChangeset for help on using the changeset viewer.