summaryrefslogtreecommitdiff
path: root/libraries/device-collectors/src/test/java/android/device/collectors/PerfettoListenerTest.java
blob: 600e1c4e7fc25e228d2ccbaa2c88194486d2ae9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
/*
 * Copyright (C) 2018 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package android.device.collectors;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.anyBoolean;
import static org.mockito.ArgumentMatchers.anyLong;
import static org.mockito.ArgumentMatchers.anyString;
import static org.mockito.ArgumentMatchers.eq;
import static org.mockito.Mockito.doAnswer;
import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.never;
import static org.mockito.Mockito.spy;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;

import android.app.Instrumentation;
import android.device.collectors.PerfettoListener.WakeLockAcquirer;
import android.device.collectors.PerfettoListener.WakeLockContext;
import android.device.collectors.PerfettoListener.WakeLockReleaser;
import android.os.Bundle;
import androidx.test.runner.AndroidJUnit4;
import com.android.helpers.PerfettoHelper;
import java.util.HashMap;
import java.util.Map;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.Description;
import org.junit.runner.notification.Failure;
import org.junit.runner.Result;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
import org.mockito.Spy;


/**
 * Android Unit tests for {@link PerfettoListener}.
 *
 * To run:
 * atest CollectorDeviceLibTest:android.device.collectors.PerfettoListenerTest
 */
@RunWith(AndroidJUnit4.class)
public class PerfettoListenerTest {

    // A {@code Description} to pass when faking a test run start call.
    private static final Description FAKE_DESCRIPTION = Description.createSuiteDescription("run");

    private static final Description FAKE_TEST_DESCRIPTION = Description
            .createTestDescription("class", "method");

    private Description mRunDesc;
    private Description mTest1Desc;
    private Description mTest2Desc;
    private PerfettoListener mListener;
    @Mock private Instrumentation mInstrumentation;
    private Map<String, Integer> mInvocationCount;
    private DataRecord mDataRecord;

    @Spy private PerfettoHelper mPerfettoHelper;

    @Mock private WakeLockContext mWakeLockContext;
    @Mock private WakeLockAcquirer mWakelLockAcquirer;
    @Mock private WakeLockReleaser mWakeLockReleaser;

    @Before
    public void setUp() {
        MockitoAnnotations.initMocks(this);
        mRunDesc = Description.createSuiteDescription("run");
        mTest1Desc = Description.createTestDescription("run", "test1");
        mTest2Desc = Description.createTestDescription("run", "test2");
        doAnswer(
                        invocation -> {
                            Runnable runnable = (Runnable) invocation.getArgument(0);
                            runnable.run();
                            return null;
                        })
                .when(mWakeLockContext)
                .run(any());
    }

    private PerfettoListener initListener(Bundle b) {
        mInvocationCount = new HashMap<>();

        PerfettoListener listener =
                spy(
                        new PerfettoListener(
                                b,
                                mPerfettoHelper,
                                mInvocationCount,
                                mWakeLockContext,
                                () -> null,
                                mWakelLockAcquirer,
                                mWakeLockReleaser));

        mDataRecord = listener.createDataRecord();
        listener.setInstrumentation(mInstrumentation);
        return listener;
    }

    /*
     * Verify perfetto start and stop collection methods called exactly once for single test.
     */
    @Test
    public void testPerfettoPerTestSuccessFlow() throws Exception {
        Bundle b = new Bundle();
        mListener = initListener(b);
        doReturn(true).when(mPerfettoHelper).startCollecting(anyString(), anyBoolean());
        doReturn(true).when(mPerfettoHelper).stopCollecting(anyLong(), anyString());
        // Test run start behavior
        mListener.testRunStarted(mRunDesc);

        // Test test start behavior
        mListener.testStarted(mTest1Desc);
        verify(mPerfettoHelper, times(1)).startCollecting(anyString(), anyBoolean());
        mListener.onTestEnd(mDataRecord, mTest1Desc);
        verify(mPerfettoHelper, times(1)).stopCollecting(anyLong(), eq(
                "/sdcard/test_results/run_test1/PerfettoListener_1_Proxy/"
                + "perfetto_run_test1-1.pb"));

    }

    /*
     * Verify stop collecting called exactly once when the test failed and the
     * skip test failure mmetrics is enabled.
     */
    @Test
    public void testPerfettoPerTestFailureFlowDefault() throws Exception {
        Bundle b = new Bundle();
        b.putString(PerfettoListener.SKIP_TEST_FAILURE_METRICS, "false");
        mListener = initListener(b);

        doReturn(true).when(mPerfettoHelper).startCollecting(anyString(), anyBoolean());
        doReturn(true).when(mPerfettoHelper).stopCollecting(anyLong(), anyString());
        // Test run start behavior
        mListener.testRunStarted(mRunDesc);

        // Test test start behavior
        mListener.testStarted(mTest1Desc);
        verify(mPerfettoHelper, times(1)).startCollecting(anyString(), anyBoolean());

        // Test fail behaviour
        Failure failureDesc = new Failure(FAKE_TEST_DESCRIPTION,
                new Exception());
        mListener.onTestFail(mDataRecord, mTest1Desc, failureDesc);
        mListener.onTestEnd(mDataRecord, mTest1Desc);
        verify(mPerfettoHelper, times(1)).stopCollecting(anyLong(), anyString());

    }

    /*
     * Verify stop perfetto called exactly once when the test failed and the
     * skip test failure metrics is enabled.
     */
    @Test
    public void testPerfettoPerTestFailureFlowWithSkipMmetrics() throws Exception {
        Bundle b = new Bundle();
        b.putString(PerfettoListener.SKIP_TEST_FAILURE_METRICS, "true");
        mListener = initListener(b);

        doReturn(true).when(mPerfettoHelper).startCollecting(anyString(), anyBoolean());
        doReturn(true).when(mPerfettoHelper).stopPerfetto();
        // Test run start behavior
        mListener.testRunStarted(mRunDesc);

        // Test test start behavior
        mListener.testStarted(mTest1Desc);
        verify(mPerfettoHelper, times(1)).startCollecting(anyString(), anyBoolean());

        // Test fail behaviour
        Failure failureDesc = new Failure(FAKE_TEST_DESCRIPTION,
                new Exception());
        mListener.onTestFail(mDataRecord, mTest1Desc, failureDesc);
        mListener.onTestEnd(mDataRecord, mTest1Desc);
        verify(mPerfettoHelper, times(1)).stopPerfetto();

    }

    /*
     * Verify the default time to wait before starting the perfetto trace.
     */
    @Test
    public void testPerfettoDefaultStartWaitTime() throws Exception {
        Bundle b = new Bundle();
        mListener = initListener(b);
        doReturn(true).when(mPerfettoHelper).startCollecting(anyString(), anyBoolean());
        doReturn(true).when(mPerfettoHelper).stopCollecting(anyLong(), anyString());
        // Test run start behavior
        mListener.testRunStarted(mRunDesc);

        // Test test start behavior
        long startTime = System.currentTimeMillis();
        mListener.testStarted(mTest1Desc);
        long endTime = System.currentTimeMillis();
        verify(mPerfettoHelper, times(1)).startCollecting(anyString(), anyBoolean());
        mListener.onTestEnd(mDataRecord, mTest1Desc);
        verify(mPerfettoHelper, times(1)).stopCollecting(anyLong(), anyString());
        // Test for wait time of 3 secs before starting the trace.
        assertTrue((endTime - startTime) >= Long
                .parseLong(PerfettoListener.DEFAULT_START_WAIT_TIME_MSECS));
    }

    /*
     * Verify the custom time to wait before starting the perfetto trace.
     */
    @Test
    public void testPerfettoCustomStartWaitTime() throws Exception {

        Bundle b = new Bundle();
        b.putString(PerfettoListener.PERFETTO_START_WAIT_TIME_ARG, "10000");
        mListener = initListener(b);
        doReturn(true).when(mPerfettoHelper).startCollecting(anyString(), anyBoolean());
        doReturn(true).when(mPerfettoHelper).stopCollecting(anyLong(), anyString());
        // Test run start behavior
        mListener.testRunStarted(mRunDesc);

        // Test test start behavior
        long startTime = System.currentTimeMillis();
        mListener.testStarted(mTest1Desc);
        long endTime = System.currentTimeMillis();
        verify(mPerfettoHelper, times(1)).startCollecting(anyString(), anyBoolean());
        mListener.onTestEnd(mDataRecord, mTest1Desc);
        verify(mPerfettoHelper, times(1)).stopCollecting(anyLong(), anyString());
        assertTrue((endTime - startTime) >= 10000);
    }

    /*
     * Verify perfetto start and stop collection methods called exactly once for test run.
     * and not during each test method.
     */
    @Test
    public void testPerfettoPerRunSuccessFlow() throws Exception {
        Bundle b = new Bundle();
        b.putString(PerfettoListener.COLLECT_PER_RUN, "true");
        mListener = initListener(b);
        doReturn(true).when(mPerfettoHelper).startCollecting(anyString(), anyBoolean());
        doReturn(true).when(mPerfettoHelper).stopCollecting(anyLong(), anyString());

        // Test run start behavior
        mListener.testRunStarted(FAKE_DESCRIPTION);
        verify(mPerfettoHelper, times(1)).startCollecting(anyString(), anyBoolean());
        mListener.testStarted(mTest1Desc);
        verify(mPerfettoHelper, times(1)).startCollecting(anyString(), anyBoolean());
        mListener.testFinished(mTest1Desc);
        verify(mPerfettoHelper, times(0)).stopCollecting(anyLong(), anyString());
        mListener.testRunFinished(new Result());
        verify(mPerfettoHelper, times(1)).stopCollecting(anyLong(), anyString());
    }

    @Test
    public void testRunWithWakeLockHoldsAndReleasesAWakelock() {
        Bundle b = new Bundle();
        mListener = initListener(b);
        mListener.runWithWakeLock(() -> {});
        verify(mWakelLockAcquirer, times(1)).acquire(any());
        verify(mWakeLockReleaser, times(1)).release(any());
    }

    @Test
    public void testRunWithWakeLockHoldsAndReleasesAWakelockWhenThereIsAnException() {
        Bundle b = new Bundle();
        mListener = initListener(b);
        try {
            mListener.runWithWakeLock(
                    () -> {
                        throw new RuntimeException("thrown on purpose");
                    });
        } catch (RuntimeException expected) {
            verify(mWakelLockAcquirer, times(1)).acquire(any());
            verify(mWakeLockReleaser, times(1)).release(any());
            return;
        }

        fail();
    }

    /*
     * Verify no wakelock is held and released when option is disabled (per run case).
     */
    @Test
    public void testPerfettoDoesNotHoldWakeLockPerRun() throws Exception {
        Bundle b = new Bundle();
        b.putString(PerfettoListener.COLLECT_PER_RUN, "true");
        mListener = initListener(b);

        doReturn(true).when(mPerfettoHelper).startCollecting(anyString(), anyBoolean());
        doReturn(true).when(mPerfettoHelper).stopCollecting(anyLong(), anyString());

        // Test run start behavior
        mListener.onTestRunStart(mListener.createDataRecord(), FAKE_DESCRIPTION);
        mListener.testStarted(mTest1Desc);
        mListener.onTestEnd(mDataRecord, mTest1Desc);
        mListener.onTestRunEnd(mListener.createDataRecord(), new Result());
        verify(mWakeLockContext, never()).run(any());
    }

    /*
     * Verify no wakelock is held and released when option is disabled (per test case).
     */
    @Test
    public void testPerfettoDoesNotHoldWakeLockPerTest() throws Exception {
        Bundle b = new Bundle();
        mListener = initListener(b);

        doReturn(true).when(mPerfettoHelper).startCollecting(anyString(), anyBoolean());
        doReturn(true).when(mPerfettoHelper).stopCollecting(anyLong(), anyString());

        // Test run start behavior
        mListener.onTestRunStart(mListener.createDataRecord(), FAKE_DESCRIPTION);
        mListener.testStarted(mTest1Desc);
        mListener.onTestEnd(mDataRecord, mTest1Desc);
        mListener.onTestRunEnd(mListener.createDataRecord(), new Result());
        verify(mWakeLockContext, never()).run(any());
    }

    /*
     * Verify a wakelock is held and released onTestRunStart when enabled.
     */
    @Test
    public void testHoldWakeLockOnTestRunStart() throws Exception {
        Bundle b = new Bundle();
        b.putString(PerfettoListener.HOLD_WAKELOCK_WHILE_COLLECTING, "true");
        b.putString(PerfettoListener.COLLECT_PER_RUN, "true");
        mListener = initListener(b);

        doReturn(true).when(mPerfettoHelper).startCollecting(anyString(), anyBoolean());
        doReturn(true).when(mPerfettoHelper).stopCollecting(anyLong(), anyString());

        // Test run start behavior
        mListener.testRunStarted(FAKE_DESCRIPTION);
        // Verify wakelock was held and released
        verify(mWakeLockContext, times(1)).run(any());
    }

    /*
     * Verify a wakelock is held and released on onTestStart.
     */
    @Test
    public void testHoldWakeLockOnTestStart() throws Exception {
        Bundle b = new Bundle();
        b.putString(PerfettoListener.HOLD_WAKELOCK_WHILE_COLLECTING, "true");
        mListener = initListener(b);

        doReturn(true).when(mPerfettoHelper).startCollecting(anyString(), anyBoolean());
        doReturn(true).when(mPerfettoHelper).stopCollecting(anyLong(), anyString());

        // Test run start behavior
        mListener.testRunStarted(FAKE_DESCRIPTION);
        // There shouldn't be a wakelock held/released onTestRunStart
        verify(mWakeLockContext, times(0)).run(any());
        mListener.testStarted(mTest1Desc);
        // There should be a wakelock held/released onTestStart
        verify(mWakeLockContext, times(1)).run(any());
    }

    /*
     * Verify wakelock is held and released in onTestEnd when option is enabled.
     */
    @Test
    public void testHoldWakeLockOnTestEnd() throws Exception {
        Bundle b = new Bundle();
        b.putString(PerfettoListener.HOLD_WAKELOCK_WHILE_COLLECTING, "true");
        mListener = initListener(b);

        doReturn(true).when(mPerfettoHelper).startCollecting(anyString(), anyBoolean());
        doReturn(true).when(mPerfettoHelper).stopCollecting(anyLong(), anyString());

        // Test run start behavior
        mListener.testRunStarted(FAKE_DESCRIPTION);
        mListener.testStarted(mTest1Desc);
        // There is one wakelock after the test/run starts
        verify(mWakeLockContext, times(1)).run(any());
        mListener.testFinished(mTest1Desc);
        // There should be a wakelock held and released onTestEnd
        verify(mWakeLockContext, times(2)).run(any());
        mListener.testRunFinished(new Result());
        // There shouldn't be more wakelocks are held onTestRunEnd
        verify(mWakeLockContext, times(2)).run(any());
    }

    /*
     * Verify wakelock is held and released in onTestRunEnd when option is enabled.
     */
    @Test
    public void testHoldWakeLockOnTestRunEnd() throws Exception {
        Bundle b = new Bundle();
        b.putString(PerfettoListener.HOLD_WAKELOCK_WHILE_COLLECTING, "true");
        b.putString(PerfettoListener.COLLECT_PER_RUN, "true");
        mListener = initListener(b);

        doReturn(true).when(mPerfettoHelper).startCollecting(anyString(), anyBoolean());
        doReturn(true).when(mPerfettoHelper).stopCollecting(anyLong(), anyString());

        // Test run start behavior
        mListener.testRunStarted(FAKE_DESCRIPTION);
        mListener.testStarted(mTest1Desc);
        // There is one wakelock after the test/run start
        verify(mWakeLockContext, times(1)).run(any());

        mListener.testFinished(mTest1Desc);
        // There shouldn't be a wakelock held/released onTestEnd.
        verify(mWakeLockContext, times(1)).run(any());
        mListener.testRunFinished(new Result());
        // There should be a new wakelock held/released onTestRunEnd.
        verify(mWakeLockContext, times(2)).run(any());
    }

    /*
     * Verify stop is not called if Perfetto start did not succeed.
     */
    @Test
    public void testPerfettoPerRunFailureFlow() throws Exception {
        Bundle b = new Bundle();
        b.putString(PerfettoListener.COLLECT_PER_RUN, "true");
        mListener = initListener(b);
        doReturn(false).when(mPerfettoHelper).startCollecting(anyString(), anyBoolean());

        // Test run start behavior
        mListener.testRunStarted(FAKE_DESCRIPTION);
        verify(mPerfettoHelper, times(1)).startCollecting(anyString(), anyBoolean());
        mListener.testRunFinished(new Result());
        verify(mPerfettoHelper, times(0)).stopCollecting(anyLong(), anyString());
    }

    /*
     * Verify perfetto stop is not invoked if start did not succeed.
     */
    @Test
    public void testPerfettoStartFailureFlow() throws Exception {
        Bundle b = new Bundle();
        mListener = initListener(b);
        doReturn(false).when(mPerfettoHelper).startCollecting(anyString(), anyBoolean());

        // Test run start behavior
        mListener.testRunStarted(mRunDesc);

        // Test test start behavior
        mListener.testStarted(mTest1Desc);
        verify(mPerfettoHelper, times(1)).startCollecting(anyString(), anyBoolean());
        mListener.onTestEnd(mDataRecord, mTest1Desc);
        verify(mPerfettoHelper, times(0)).stopCollecting(anyLong(), anyString());
    }

    /*
     * Verify test method invocation count is updated successfully based on the number of times the
     * test method is invoked.
     */
    @Test
    public void testPerfettoInvocationCount() throws Exception {
        Bundle b = new Bundle();
        mListener = initListener(b);
        doReturn(true).when(mPerfettoHelper).startCollecting(anyString(), anyBoolean());
        doReturn(true).when(mPerfettoHelper).stopCollecting(anyLong(), anyString());

        // Test run start behavior
        mListener.testRunStarted(mRunDesc);

        // Test1 invocation 1 start behavior
        mListener.testStarted(mTest1Desc);
        verify(mPerfettoHelper, times(1)).startCollecting(anyString(), anyBoolean());
        mListener.onTestEnd(mDataRecord, mTest1Desc);
        verify(mPerfettoHelper, times(1)).stopCollecting(anyLong(), anyString());

        // Test1 invocation 2 start behaviour
        mListener.testStarted(mTest1Desc);
        verify(mPerfettoHelper, times(2)).startCollecting(anyString(), anyBoolean());
        mListener.onTestEnd(mDataRecord, mTest1Desc);
        verify(mPerfettoHelper, times(2)).stopCollecting(anyLong(), anyString());

        // Test2 invocation 1 start behaviour
        mListener.testStarted(mTest2Desc);
        verify(mPerfettoHelper, times(3)).startCollecting(anyString(), anyBoolean());
        mDataRecord = mListener.createDataRecord();
        mListener.onTestEnd(mDataRecord, mTest2Desc);
        verify(mPerfettoHelper, times(3)).stopCollecting(anyLong(), anyString());

        // Check if the the test count is incremented properly.
        assertEquals(2, (int) mInvocationCount.get(mListener.getTestFileName(mTest1Desc)));
        assertEquals(1, (int) mInvocationCount.get(mListener.getTestFileName(mTest2Desc)));

    }
    
    /*
     * Verify perfetto start and stop collection methods called when the text
     * proto config option is enabled
     */
    @Test
    public void testPerfettoSuccessFlowWithTextConfig() throws Exception {
        Bundle b = new Bundle();
        b.putString(PerfettoListener.PERFETTO_CONFIG_TEXT_PROTO, "true");
        mListener = initListener(b);
        doReturn(true).when(mPerfettoHelper).startCollecting(anyString(), anyBoolean());
        doReturn(true).when(mPerfettoHelper).stopCollecting(anyLong(), anyString());
        // Test run start behavior
        mListener.testRunStarted(mRunDesc);

        // Test test start behavior
        mListener.testStarted(mTest1Desc);
        verify(mPerfettoHelper, times(1)).startCollecting(anyString(), anyBoolean());
        mListener.onTestEnd(mDataRecord, mTest1Desc);
        verify(mPerfettoHelper, times(1)).stopCollecting(anyLong(), anyString());

    }

    /*
     * Verify spaces in the test description are replaced with special character. Test description
     * is used for creating the perfetto file, if the spaces are not replaced then tradefed content
     * provider will throw an error for the files with spaces.
     */
    @Test
    public void testPerfettoTestNameWithSpaces() throws Exception {
        Bundle b = new Bundle();
        mListener = initListener(b);
        doReturn(true).when(mPerfettoHelper).startCollecting(anyString(), anyBoolean());
        doReturn(true).when(mPerfettoHelper).stopCollecting(anyLong(), anyString());
        // Test run start behavior
        mListener.testRunStarted(mRunDesc);

        Description mTest1DescWithSpaces = Description.createTestDescription("run  123",
                "test1 456");
        // Test test start behavior
        mListener.testStarted(mTest1DescWithSpaces);
        verify(mPerfettoHelper, times(1)).startCollecting(anyString(), anyBoolean());
        mListener.onTestEnd(mDataRecord, mTest1DescWithSpaces);
        verify(mPerfettoHelper, times(1)).stopCollecting(anyLong(), eq(
                "/sdcard/test_results/run#123_test1#456/PerfettoListener_1_Proxy/"
                + "perfetto_run#123_test1#456-1.pb"));

    }

}