From 8a7aef4ec5be08915bf52dfe5833fab67e7f3be8 Mon Sep 17 00:00:00 2001 From: Brian Lin CA Date: Thu, 27 Aug 2026 00:02:55 -0700 Subject: [PATCH] Internal Commit Uploaded PiperOrigin-RevId: 971762237 --- AppFramework/DistantObject/GREYHostBackgroundDistantObject.m | 4 ++-- TestLib/DistantObject/GREYTestApplicationDistantObject.m | 4 +++- TestLib/Execution/GREYRemoteExecutor.m | 4 ++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/AppFramework/DistantObject/GREYHostBackgroundDistantObject.m b/AppFramework/DistantObject/GREYHostBackgroundDistantObject.m index 35687bd0b..115bf08a7 100644 --- a/AppFramework/DistantObject/GREYHostBackgroundDistantObject.m +++ b/AppFramework/DistantObject/GREYHostBackgroundDistantObject.m @@ -37,8 +37,8 @@ + (instancetype)sharedInstance { - (instancetype)initOnce { self = [super init]; if (self) { - dispatch_queue_attr_t queueAttributes = - dispatch_queue_attr_make_with_qos_class(DISPATCH_QUEUE_SERIAL, QOS_CLASS_USER_INITIATED, 0); + dispatch_queue_attr_t queueAttributes = dispatch_queue_attr_make_with_qos_class( + DISPATCH_QUEUE_SERIAL, QOS_CLASS_USER_INTERACTIVE, 0); _backgroundQueue = dispatch_queue_create("com.google.earlgrey.hostbackground", queueAttributes); _service = [EDOHostService serviceWithPort:0 rootObject:self queue:_backgroundQueue]; } diff --git a/TestLib/DistantObject/GREYTestApplicationDistantObject.m b/TestLib/DistantObject/GREYTestApplicationDistantObject.m index c385c4a93..16fc4b247 100644 --- a/TestLib/DistantObject/GREYTestApplicationDistantObject.m +++ b/TestLib/DistantObject/GREYTestApplicationDistantObject.m @@ -242,7 +242,9 @@ - (EDOHostService *)service { _executingQueue = mainQueue; _service = [EDOHostService serviceWithPort:0 rootObject:self queue:_executingQueue]; } else { - _executingQueue = dispatch_queue_create("com.google.earlgrey.TestDO", DISPATCH_QUEUE_SERIAL); + dispatch_queue_attr_t queueAttributes = dispatch_queue_attr_make_with_qos_class( + DISPATCH_QUEUE_SERIAL, QOS_CLASS_USER_INTERACTIVE, 0); + _executingQueue = dispatch_queue_create("com.google.earlgrey.TestDO", queueAttributes); _service = [EDOHostService serviceWithPort:0 rootObject:self queue:_executingQueue]; _service.originatingQueues = @[ mainQueue ]; } diff --git a/TestLib/Execution/GREYRemoteExecutor.m b/TestLib/Execution/GREYRemoteExecutor.m index afe251937..3b38b1cdd 100644 --- a/TestLib/Execution/GREYRemoteExecutor.m +++ b/TestLib/Execution/GREYRemoteExecutor.m @@ -26,8 +26,8 @@ void GREYExecuteAsyncBlockInBackgroundQueue(void (^block)(void), void (^completi dispatch_once(&token, ^{ // Since the "user" in the test is often initiating requests and waiting on the blocks on the // main thread, the USER_INITIATED QoS class is used. - dispatch_queue_attr_t queueAttributes = - dispatch_queue_attr_make_with_qos_class(DISPATCH_QUEUE_SERIAL, QOS_CLASS_USER_INITIATED, 0); + dispatch_queue_attr_t queueAttributes = dispatch_queue_attr_make_with_qos_class( + DISPATCH_QUEUE_SERIAL, QOS_CLASS_USER_INTERACTIVE, 0); appProxyQueue = dispatch_queue_create("com.google.earlgrey.egappproxyqueue", queueAttributes); [EDOHostService serviceWithPort:0 rootObject:nil queue:appProxyQueue]; });