Commit ff0c39bf authored by Olivier Robin's avatar Olivier Robin Committed by Commit Bot

Create DisableAppGroupAccess test hook

EGtests bundle don't have access to application groups.
Create a test hook to prevent app group access.

Bug: 855625
Cq-Include-Trybots: luci.chromium.try:ios-simulator-full-configs;master.tryserver.chromium.mac:ios-simulator-cronet
Change-Id: I3c773f92edfdaafb9207d69a51ba6fdee823868b
Reviewed-on: https://chromium-review.googlesource.com/1113540Reviewed-by: default avatarJustin Cohen <justincohen@chromium.org>
Reviewed-by: default avatarRohit Rao <rohitrao@chromium.org>
Commit-Queue: Olivier Robin <olivierrobin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#570715}
parent fec3c507
......@@ -10,6 +10,9 @@
namespace tests_hook {
bool DisableAppGroupAccess() {
return false;
}
bool DisableContentSuggestions() {
return false;
}
......
......@@ -7,6 +7,11 @@
namespace tests_hook {
// Returns true if app group access should be disabled as tests don't have the
// required entitlements.
// This is used by internal code.
bool DisableAppGroupAccess();
// Returns true if ContentSuggestions should be disabled to allow other tests to
// run unimpeded.
bool DisableContentSuggestions();
......
......@@ -10,6 +10,10 @@
namespace tests_hook {
bool DisableAppGroupAccess() {
return true;
}
bool DisableContentSuggestions() {
return true;
}
......
......@@ -10,6 +10,10 @@
namespace tests_hook {
bool DisableAppGroupAccess() {
return true;
}
bool DisableContentSuggestions() {
return true;
}
......
......@@ -10,6 +10,10 @@
namespace tests_hook {
bool DisableAppGroupAccess() {
return true;
}
bool DisableContentSuggestions() {
return true;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment