src/modular/lib/modular_config/modular_config_accessor_unittest.cc
// Tests that |use_random_session_id| is false if the base shell is configured to persist the user.
Tests that |use_random_session_id| is false if the base shell is configured to persist the user.
Tests that |use_random_session_id| is false if the base shell is configured to persist the user .
TEST(ModularConfigAccessor, UseRandomSessionIdPersistUserArg) {
  fuchsia::modular::session::ModularConfig config;
  config.mutable_basemgr_config()->mutable_base_shell()->mutable_app_config()->set_args(
      {modular_config::kPersistUserArg});
  auto accessor = ModularConfigAccessor(std::move(config));
  EXPECT_FALSE(accessor.use_random_session_id());
}
TEST ( ModularConfigAccessor , UseRandomSessionIdPersistUserArg ) { fuchsia :: modular :: session :: ModularConfig config ; config . mutable_basemgr_config ( ) -> mutable_base_shell ( ) -> mutable_app_config ( ) -> set_args ( { modular_config :: kPersistUserArg } ) ; auto accessor = ModularConfigAccessor ( std :: move ( config ) ) ; EXPECT_FALSE ( accessor . use_random_session_id ( ) ) ; }
Tests that |use_random_session_id| is false if the base shell is configured to persist the user.
Tests that |use_random_session_id| is false if the base shell is configured to persist the user .
// Create a config that has a base shell config with the `--persist-user` arg. // Persisting the user means that the session ID should not be random.