arc: Disable ARC app sync and PAI flows for autotests.
Add posibility to disable these flows for autotests where it is racy or
add unwanted load that affect test stability.
BUG=b:119216406
BUG=b:121271177
TEST=test_that eve cheets_PlayStoreTest with modified test that accepts
these flag and confirm it is faster, and is not influenced by app sync
flow.
Change-Id: I3f839481d0dbfd738a89c82c93f1eaafba22cd34
Reviewed-on: https://chromium-review.googlesource.com/c/1385855
Reviewed-by: Xiyuan Xia <[email protected]>
Reviewed-by: Hidehiko Abe <[email protected]>
Reviewed-by: Tatiana Gornak <[email protected]>
Commit-Queue: Yury Khmel <[email protected]>
Cr-Commit-Position: refs/heads/master@{#618615}
diff --git a/components/arc/arc_util.h b/components/arc/arc_util.h
index 19f16b8..11e96f6 100644
--- a/components/arc/arc_util.h
+++ b/components/arc/arc_util.h
@@ -111,6 +111,12 @@
// Returns true if data clean up is requested for each ARC start.
bool IsArcDataCleanupOnStartRequested();
+// Returns true in case ARC app sync flow is disabled.
+bool IsArcAppSyncFlowDisabled();
+
+// Returns true in case ARC Play Auto Install flow is disabled.
+bool IsArcPlayAutoInstallDisabled();
+
// Adjusts the amount of CPU the ARC instance is allowed to use. When
// |do_restrict| is true, the limit is adjusted so ARC can only use tightly
// restricted CPU resources.