power_UiResume: Create version that disables arc.

Create a version of the test that explicitly doesn't enable arc so we
can compare against the arc version as well as track test health
between the two.  Test will run as part of crosbolt_perf_perbuild.

BUG=b:160353027
TEST=power_UiResume.no_arc

Change-Id: I7df32b9a256036a5327159f1450cc41f67c950df
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/autotest/+/2278116
Tested-by: Todd Broch <tbroch@chromium.org>
Reviewed-by: Puthikorn Voravootivat <puthik@chromium.org>
Commit-Queue: Puthikorn Voravootivat <puthik@chromium.org>
Auto-Submit: Todd Broch <tbroch@chromium.org>
diff --git a/client/site_tests/power_UiResume/control.no_arc b/client/site_tests/power_UiResume/control.no_arc
new file mode 100644
index 0000000..d6c13e2
--- /dev/null
+++ b/client/site_tests/power_UiResume/control.no_arc
@@ -0,0 +1,24 @@
+# Copyright 2020 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+AUTHOR = "Chrome OS Team"
+NAME = "power_UiResume.no_arc"
+PURPOSE = "Measure the amount of time it takes to resume from suspend."
+CRITERIA = "This test is a benchmark."
+ATTRIBUTES = "suite:crosbolt_perf_perbuild"
+TIME = "SHORT"
+TEST_CATEGORY = "Logging"
+TEST_CLASS = "power"
+TEST_TYPE = "client"
+
+DOC = """
+This test will search /var/log/messages for pertinent strings to determine if
+the cpu is sleeping. It will wait for a number of seconds before suspending to
+ram. It will then calculate how many seconds the system was suspended, and
+how many seconds it took to resume. It will also parse the ARC logcat to measure
+how many seconds it took for ARC to suspend and then resume. As a precaution it
+will ensure your network interface is UP after it has resumed.
+"""
+job.run_test('power_UiResume', ignore_kernel_warns=True, no_arc=True,
+             tag=NAME.split('.')[1])
diff --git a/client/site_tests/power_UiResume/power_UiResume.py b/client/site_tests/power_UiResume/power_UiResume.py
index 99b9c44..2836224 100644
--- a/client/site_tests/power_UiResume/power_UiResume.py
+++ b/client/site_tests/power_UiResume/power_UiResume.py
@@ -18,14 +18,14 @@
     """
     version = 3
 
-    def initialize(self):
+    def initialize(self, no_arc=False):
         """
         Entry point. Initialize ARC if it is enabled on the DUT, otherwise log
         in Chrome browser.
 
         """
         self._arc_available = utils.is_arc_available()
-        if self._arc_available:
+        if self._arc_available and not no_arc:
             super(power_UiResume, self).initialize()
         else:
             self._chrome = chrome.Chrome()