EXPECT_EQ(expected_dir, profile_dir.BaseName().value());
}
-IN_PROC_BROWSER_TEST_F(ProfileHelperTest,
- GetProfileDirByLegacyLoginProfileSwitch) {
- CommandLine::ForCurrentProcess()->
- AppendSwitchASCII(chromeos::switches::kLoginProfile,
- chrome::kLegacyProfileDir);
- EXPECT_EQ(chrome::kLegacyProfileDir,
- ProfileHelper::GetProfileDirByLegacyLoginProfileSwitch().value());
- CommandLine::ForCurrentProcess()->
- AppendSwitchASCII(chromeos::switches::kLoginProfile,
- chrome::kTestUserProfileDir);
- EXPECT_EQ(chrome::kTestUserProfileDir,
- ProfileHelper::GetProfileDirByLegacyLoginProfileSwitch().value());
- CommandLine::ForCurrentProcess()->
- AppendSwitchASCII(chromeos::switches::kLoginProfile,
- kActiveUserHash);
- EXPECT_EQ(std::string(chrome::kProfileDirPrefix) + kActiveUserHash,
- ProfileHelper::GetProfileDirByLegacyLoginProfileSwitch().value());
-}
-
IN_PROC_BROWSER_TEST_F(ProfileHelperTest, GetProfilePathByUserIdHash) {
ProfileHelper profile_helper;
base::FilePath profile_path =