summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2020-03-17 16:53:45 -0700
committerYabin Cui <yabinc@google.com>2020-03-24 16:24:00 -0700
commit18a3eddaa79e15904b5b0f6fc9918d5ce4c49eb0 (patch)
tree57c8522e3883ff82fa6de629e7683ae281fe9832
parent5c6334f3957b3354ee8af6b2c009c1cdf1af4e2a (diff)
downloadextras-18a3eddaa79e15904b5b0f6fc9918d5ce4c49eb0.tar.gz
simpleperf: fix flaky record_native_app test.
Make the test pass with a lock screen. Bug: 151110118 Test: run CtsSimpleperfTestCases with a lock screen. Change-Id: I682daadc1a79474496594ef697917f0b8abca5c1 (cherry picked from commit 6c03e04df7ed218ea4d227ac847587827f19594e)
-rw-r--r--simpleperf/cmd_record_test.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/simpleperf/cmd_record_test.cpp b/simpleperf/cmd_record_test.cpp
index c6bc3f22..0879f955 100644
--- a/simpleperf/cmd_record_test.cpp
+++ b/simpleperf/cmd_record_test.cpp
@@ -892,12 +892,10 @@ TEST(record_cmd, record_native_app) {
// 4. Check perf.data.
auto process_symbol = [&](const char* name) {
-#if !defined(IN_CTS_TEST)
const char* expected_name_with_keyguard = "NativeActivity"; // when screen is locked
if (strstr(name, expected_name_with_keyguard) != nullptr) {
return true;
}
-#endif
const char* expected_name = "PlayScene::DoFrame"; // when screen is awake
return strstr(name, expected_name) != nullptr;
};