Merge "perfetto: fix cts test failure after clock sync"
diff --git a/test/cts/end_to_end_integrationtest_cts.cc b/test/cts/end_to_end_integrationtest_cts.cc
index 787be39..2bf1d26 100644
--- a/test/cts/end_to_end_integrationtest_cts.cc
+++ b/test/cts/end_to_end_integrationtest_cts.cc
@@ -58,7 +58,10 @@
                         std::vector<TracePacket> packets, bool has_more) {
       for (auto& packet : packets) {
         ASSERT_TRUE(packet.Decode());
-        ASSERT_TRUE(packet->has_for_testing());
+        ASSERT_TRUE(packet->has_for_testing() || packet->has_clock_snapshot());
+        if (packet->has_clock_snapshot()) {
+          continue;
+        }
         ASSERT_EQ(protos::TracePacket::kTrustedUid,
                   packet->optional_trusted_uid_case());
         ASSERT_EQ(packet->for_testing().seq_value(), rnd_engine());