summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2020-03-18 17:27:44 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2020-03-18 17:27:44 +0000
commit0b9f8de9be1e37c735d7cf58ad93b851e06a3a83 (patch)
treeedab3b2b5dd1670c6554ca706d2d4dca62d4d744
parent852a3e198ac87a03d473dae5fa2ba6163ac16c55 (diff)
parent6c03e04df7ed218ea4d227ac847587827f19594e (diff)
downloadextras-android-r-preview-2.tar.gz
Merge "simpleperf: fix flaky record_native_app test."android-r-preview-4android-r-preview-3android-r-preview-2
-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;
};