summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorRuchir Rastogi <ruchirr@google.com>2020-02-20 17:54:13 -0800
committerRuchir Rastogi <ruchirr@google.com>2020-02-27 17:33:53 +0000
commitdfd63d452231dfcfad2f2b321a6161adc8df1a61 (patch)
treea1f48c0e9f58771205b60b8487a240c36acab98e /tools/aapt2/java/JavaClassGenerator_test.cpp
parent84d6a305a21af9a5cd40ee065835c3daab2f78af (diff)
Use new socket schema within TestSlicedCondition
This CL serves as a prototype for future efforts to move statsd tests to the new socket schema. We also significantly refactor the LogEvent class by introducing two new functions: - LogEvent::LogEvent(int32_t uid, int32_t pid) - bool LogEvent::parseBuffer(uint8_t* buf, size_t size) The goal is that these two functions will be the only two entry points into the class. Separating these two is helpful because (a) it allows test and source code to use the same codepath and (b) it allows the calling function to see if the atom encoding was successfully parsed (note that constructors can't return values). P.S. This CL breaks LogEventQueueTests, but that will be resolved once all tests are moved to the new constructors. Test: m statsd Test: bit statsd_test:SimpleConditionTrackerTest#TestSlicedCondition Bug: 149590301 Change-Id: Id3c9522c4467c4869ec97226734a556dd9dfb169 Merged-In: Id3c9522c4467c4869ec97226734a556dd9dfb169 (cherry picked from commit 14f56f6bc4ee7d0b734c9be0f39ddf2d2e41cae4)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions