• Home
  • History
  • Annotate
  • only in /external/perfetto/test/cts/
NameDateSize

..10-Aug-20184 KiB

Android.bp10-Aug-2018607

AndroidTest.xml10-Aug-20182.1 KiB

end_to_end_integrationtest_cts.cc10-Aug-20183.1 KiB

producer/10-Aug-20184 KiB

README.md10-Aug-20181.6 KiB

README.md

1This folder contains the CTS tests for the Perfetto library.
2
3# Background
4For information about what CTS is, please go to
5https://source.android.com/compatibility/cts/ where you will find information
6on the purpose of CTS and how to run these tests.
7
8# Structure of folder
9There are two targets in this folder: a mock producer app and a GTest
10suite.
11
12The GTest suite is both the consumer of data as well as the driver
13the actual tests we wish to run. This target drives the tracing system by
14requesting tracing to start/stop and ensures the data it receives is correct.
15This mimics the role of real consumers acting as the driver for tracing on
16device. This suite is compiled and pushed to device and subsequently run
17using a shell account which gives us permissions to access the perfetto 
18consumer socket.
19
20The mock producer is an Android app with a thin Java wrapping around the C++
21library interfaced using JNI. The purpose of this target is to ensure that the
22TraceProto received from the consumer is valid and and then push some fake data.
23This ensures that any arbitary app can push data to the Perfetto socket which
24can then be decoded by the GTest consumer. This app is simply installed before
25the GTest suite is run.
26
27# Notes
28The AndroidTest.xml file which is associated with these tests can be found
29in $ANDROID/cts/tests/perfetto. This is to allow for other users of CTS to
30be aware that Perfetto has CTS tests.
31
32The code is located inside the Perfetto repository as we anticipate fast
33development on Perfetto and moreover, we wish to retain the ability to
34run these tests independently of the Android tree if required.