diff options
author | 2018-12-07 17:26:17 +0000 | |
---|---|---|
committer | 2018-12-07 17:26:17 +0000 | |
commit | 1e2e714cf25f37e5e925477cdd68fe2baf82c134 (patch) | |
tree | 5851aab8a4d71b49dbd272b822bfd1ae2cbd08df /runtime/parsed_options_test.cc | |
parent | e3c6dfe2009d2fad6f8e4401cb17935bdd09ab9e (diff) | |
parent | db4b1deebf425be5f1d0f597d1ef540f19908324 (diff) |
Merge "Revert "Pass boot class path to ImageSpace::LoadBootImage.""
Diffstat (limited to 'runtime/parsed_options_test.cc')
-rw-r--r-- | runtime/parsed_options_test.cc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/runtime/parsed_options_test.cc b/runtime/parsed_options_test.cc index cbb7b825d3..705cc6c5e2 100644 --- a/runtime/parsed_options_test.cc +++ b/runtime/parsed_options_test.cc @@ -40,7 +40,8 @@ TEST_F(ParsedOptionsTest, ParsedOptions) { boot_class_path += "-Xbootclasspath:"; bool first_dex_file = true; - for (const std::string &dex_file_name : CommonRuntimeTest::GetLibCoreDexFileNames()) { + for (const std::string &dex_file_name : + CommonRuntimeTest::GetLibCoreDexFileNames()) { if (!first_dex_file) { class_path += ":"; } else { @@ -49,8 +50,6 @@ TEST_F(ParsedOptionsTest, ParsedOptions) { class_path += dex_file_name; } boot_class_path += class_path; - std::vector<std::string> expected_boot_class_path; - Split(class_path, ':', &expected_boot_class_path); RuntimeOptions options; options.push_back(std::make_pair(boot_class_path.c_str(), nullptr)); @@ -79,11 +78,9 @@ TEST_F(ParsedOptionsTest, ParsedOptions) { using Opt = RuntimeArgumentMap; #define EXPECT_PARSED_EQ(expected, actual_key) EXPECT_EQ(expected, map.GetOrDefault(actual_key)) -#define EXPECT_PARSED_EQ_AS_STRING_VECTOR(expected, actual_key) \ - EXPECT_EQ(expected, static_cast<std::vector<std::string>>(map.GetOrDefault(actual_key))) #define EXPECT_PARSED_EXISTS(actual_key) EXPECT_TRUE(map.Exists(actual_key)) - EXPECT_PARSED_EQ_AS_STRING_VECTOR(expected_boot_class_path, Opt::BootClassPath); + EXPECT_PARSED_EQ(class_path, Opt::BootClassPath); EXPECT_PARSED_EQ(class_path, Opt::ClassPath); EXPECT_PARSED_EQ(std::string("boot_image"), Opt::Image); EXPECT_PARSED_EXISTS(Opt::CheckJni); |