trace_processor: refactor and simplify metrics function code
This CL works on simplifying some of the code for the metrics SQL
functions. This prepares for changing the implementation of the
RepeatedField function in a followup CL.
While doing this, since it's very helpful, also add some gtest matchers
for status OK/error checking which makes the tests nicer.
Change-Id: Icf1ad1417eab5e3d309f00fd340a22ba874ca7d2
diff --git a/Android.bp b/Android.bp
index 169c74f..9e001f0 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1726,6 +1726,13 @@
":perfetto_src_tracing_ipc_service_service",
":perfetto_test_test_helper",
],
+ static_libs: [
+ "libgmock",
+ "libgtest",
+ ],
+ whole_static_libs: [
+ "perfetto_gtest_logcat_printer",
+ ],
generated_headers: [
"perfetto_protos_perfetto_common_cpp_gen_headers",
"perfetto_protos_perfetto_common_zero_gen_headers",