From c920308e5847a2f821d566d6cdd18c3b9ad9a31a Mon Sep 17 00:00:00 2001 From: Tej Singh Date: Fri, 3 May 2019 13:42:23 -0700 Subject: [PATCH] CTS: StatsLog.writeRaw() CTS test for StatsLog.writeRaw(). Tests writeRaw using the app breadcrumb atom to get some cts coverage. Test: cts-tradefed run cts-dev --module CtsStatsdHostTestCases Bug: 130238616 Change-Id: I44d4a0e618617002c9ff55cfe86fd1cbf29116c5 --- cmds/statsd/src/atoms.proto | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/cmds/statsd/src/atoms.proto b/cmds/statsd/src/atoms.proto index b9a4b52d6c48c..f53ac1b770217 100644 --- a/cmds/statsd/src/atoms.proto +++ b/cmds/statsd/src/atoms.proto @@ -298,6 +298,7 @@ message Atom { VehicleMapServicePacketFailureReported vms_packet_failure_reported = 202; CarPowerStateChanged car_power_state_changed = 203; GarageModeInfo garage_mode_info = 204; + TestAtomReported test_atom_reported = 205 [(log_from_module) = "cts"]; } // Pulled events will start at field 10000. @@ -3342,6 +3343,23 @@ message BinaryPushStateChanged { optional int32 user_id = 8; } +/* Test atom, is not logged anywhere */ +message TestAtomReported { + repeated AttributionNode attribution_node = 1; + optional int32 int_field = 2; + optional int64 long_field = 3; + optional float float_field = 4; + optional string string_field = 5; + optional bool boolean_field = 6; + enum State { + UNKNOWN = 0; + OFF = 1; + ON = 2; + } + optional State state = 7; + optional TrainExperimentIds bytes_field = 8 [(android.os.statsd.log_mode) = MODE_BYTES]; +} + /** Represents USB port overheat event. */ message UsbPortOverheatEvent { /* Temperature of USB port at USB plug event, in 1/10ths of degree C. */