Skip to content

Commit

Permalink
Fix 'PerfettoCmdlineTest#CloneByName' test.
Browse files Browse the repository at this point in the history
We parsed non-cloned trace from the cloned trace file.

Change-Id: I64b9fd862a1ace3fb71e8146cd98f042e4bc9692
  • Loading branch information
Kirill Timofeev committed Nov 11, 2024
1 parent 554ba58 commit f182424
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/cmdline_integrationtest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@ TEST_F(PerfettoCmdlineTest, CloneByName) {
std::string trace_str;
base::ReadFile(path, &trace_str);
protos::gen::Trace trace;
ASSERT_TRUE(trace.ParseFromString(cloned_trace_str));
ASSERT_TRUE(trace.ParseFromString(trace_str));
ssize_t num_test_packets = std::count_if(
trace.packet().begin(), trace.packet().end(),
[](const protos::gen::TracePacket& tp) { return tp.has_for_testing(); });
Expand Down

0 comments on commit f182424

Please sign in to comment.