summaryrefslogtreecommitdiff
path: root/simpleperf/cmd_report_test.cpp
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2020-07-07 15:56:34 -0700
committerYabin Cui <yabinc@google.com>2020-07-08 15:02:56 -0700
commitacbdb2456da4837a143d096a8a0563ba1dfc0507 (patch)
tree9e07abefafc96e76fb9b065264fb67cb78c0d9ad /simpleperf/cmd_report_test.cpp
parent4f6808ce8d0a10cb4c8588ddd7ed275001da3154 (diff)
downloadextras-acbdb2456da4837a143d096a8a0563ba1dfc0507.tar.gz
simpleperf: add function to preprocess options.
Add Command::PreprocessOptions() to extracts options from the argument list. It splits options into different types. Instead of replying on the order in the argument list, it allows a command choosing the order to process each option. Also put whole command.h in simpleperf namespace. Bug: 160701181 Test: run simpleperf_unit_test. Change-Id: I9b20e21a94797c322c1371cbe1704b3e2ce1be28
Diffstat (limited to 'simpleperf/cmd_report_test.cpp')
-rw-r--r--simpleperf/cmd_report_test.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/simpleperf/cmd_report_test.cpp b/simpleperf/cmd_report_test.cpp
index 36837f9e..ae081148 100644
--- a/simpleperf/cmd_report_test.cpp
+++ b/simpleperf/cmd_report_test.cpp
@@ -28,6 +28,8 @@
#include "read_apk.h"
#include "test_util.h"
+using namespace simpleperf;
+
static std::unique_ptr<Command> ReportCmd() {
return CreateCommandInstance("report");
}