Changeset 285961 in webkit
- Timestamp:
- Nov 17, 2021, 3:43:39 PM (5 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
TestWebKitAPI/Tests/WebKitCocoa/EventAttribution.mm (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r285960 r285961 1 2021-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 1 13 2021-11-17 Ryan Haddad <ryanhaddad@apple.com> 2 14 -
trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/EventAttribution.mm
r285547 r285961 408 408 } 409 409 410 // FIXME: Get this working in the iOS simulator. 411 #if PLATFORM(MAC) 410 #if PLATFORM(MAC) || PLATFORM(IOS) 412 411 413 412 static RetainPtr<NSURL> testPCMDaemonLocation() … … 423 422 xpc_dictionary_set_string(plist.get(), "_ManagedBy", "TestWebKitAPI"); 424 423 xpc_dictionary_set_string(plist.get(), "Label", "org.webkit.pcmtestdaemon"); 424 xpc_dictionary_set_bool(plist.get(), "RootedSimulatorPath", true); 425 425 xpc_dictionary_set_bool(plist.get(), "LaunchOnlyOnce", true); 426 426 xpc_dictionary_set_string(plist.get(), "StandardErrorPath", [storageLocation URLByAppendingPathComponent:@"daemon_stderr"].path.fileSystemRepresentation); … … 480 480 EXPECT_NULL(error); 481 481 482 system("killall adattributiond -9 2> /dev/null");482 killFirstInstanceOfDaemon(@"adattributiond"); 483 483 484 484 auto plist = testDaemonPList(tempDir); … … 497 497 static void cleanUpDaemon(NSURL *tempDir) 498 498 { 499 system("killall adattributiond -9");499 killFirstInstanceOfDaemon(@"adattributiond"); 500 500 501 501 EXPECT_TRUE([[NSFileManager defaultManager] fileExistsAtPath:tempDir.path]); … … 531 531 } 532 532 533 #if PLATFORM(MAC) 533 534 static void setInjectedBundleClient(WKWebView *webView, Vector<String>& consoleMessages) 534 535 { … … 587 588 EXPECT_WK_STREQ(consoleMessages[1], "[Private Click Measurement] Turned Debug Mode off."); 588 589 } 589 590 590 #endif // PLATFORM(MAC) 591 592 #endif // PLATFORM(MAC) || PLATFORM(IOS) 591 593 592 594 #if HAVE(UI_EVENT_ATTRIBUTION)
Note:
See TracChangeset
for help on using the changeset viewer.