CreatePrimaryCurrentProfile was using the wrong userid for the expected
value.
Test: adb shell /data/nativetest/installd_utils_test/installd_utils_test
Bug:
36101738
Change-Id: I80b8212d09a0e4b600c00f85ac604a0e5fa1cc11
TEST_F(UtilsTest, CreatePrimaryCurrentProfile) {
std::string expected =
- create_primary_current_profile_package_dir_path(1, "com.example") + "/primary.prof";
+ create_primary_current_profile_package_dir_path(0, "com.example") + "/primary.prof";
EXPECT_EQ(expected,
create_current_profile_path(/*user*/0, "com.example", /*is_secondary*/false));
}