diff options
author | 2015-07-31 17:35:52 -0700 | |
---|---|---|
committer | 2015-07-31 17:35:52 -0700 | |
commit | a315f5c546b796f55f4872bb6efc15eb858d9639 (patch) | |
tree | 188bcbab728423d79147fd9d9da45c2539371ac5 /runtime/parsed_options_test.cc | |
parent | bc1d78daa463572c5a770cdca858a3b51d8e1b7b (diff) |
cleanup: Replace pointers with out-parameters and fix-up formatting
Cleans all of oat_file.h/.cc, parsed_options.h./cc, runtime.h/.cc
Other files are touched only incidentally to use outof(x) instead of &x.
Change-Id: I0bb15111149d53bb21aac2199ef33bd35333b0ca
Diffstat (limited to 'runtime/parsed_options_test.cc')
-rw-r--r-- | runtime/parsed_options_test.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/parsed_options_test.cc b/runtime/parsed_options_test.cc index a8575de425..81a48a68cf 100644 --- a/runtime/parsed_options_test.cc +++ b/runtime/parsed_options_test.cc @@ -18,6 +18,7 @@ #include <memory> +#include "base/out.h" #include "common_runtime_test.h" namespace art { @@ -60,7 +61,7 @@ TEST_F(ParsedOptionsTest, ParsedOptions) { options.push_back(std::make_pair("exit", test_exit)); RuntimeArgumentMap map; - std::unique_ptr<ParsedOptions> parsed(ParsedOptions::Create(options, false, &map)); + std::unique_ptr<ParsedOptions> parsed(ParsedOptions::Create(options, false, outof(map))); ASSERT_TRUE(parsed.get() != nullptr); ASSERT_NE(0u, map.Size()); @@ -102,7 +103,7 @@ TEST_F(ParsedOptionsTest, ParsedOptionsGc) { options.push_back(std::make_pair("-Xgc:MC", nullptr)); RuntimeArgumentMap map; - std::unique_ptr<ParsedOptions> parsed(ParsedOptions::Create(options, false, &map)); + std::unique_ptr<ParsedOptions> parsed(ParsedOptions::Create(options, false, outof(map))); ASSERT_TRUE(parsed.get() != nullptr); ASSERT_NE(0u, map.Size()); |