CHECK_RETURN("connection_profile_get_internet_state", ret, CONNECTION_ERROR_NOT_SUPPORTED);
}
- int ret = connection_get_current_profile(connection, &profile_temp);
- CHECK_RETURN("connection_get_current_profile", ret, CONNECTION_ERROR_NONE);
- ret = connection_profile_get_internet_state(profile_temp, &internet_state);
+ connection_profile_h profile_h = NULL;
+ int ret = test_get_any_profile(&profile_h);
+ ret = connection_profile_get_internet_state(profile_h, &internet_state);
CHECK_RETURN("connection_profile_get_internet_state", ret, CONNECTION_ERROR_NONE);
return 0;
CHECK_RETURN("connection_profile_get_internet_state", ret, CONNECTION_ERROR_NOT_SUPPORTED);
}
- int ret = connection_get_current_profile(connection, &profile_temp);
- CHECK_RETURN("connection_get_current_profile", ret, CONNECTION_ERROR_NONE);
- ret = connection_profile_get_internet_state(profile_temp, NULL);
+ connection_profile_h profile_h = NULL;
+ int ret = test_get_any_profile(&profile_h);
+ ret = connection_profile_get_internet_state(profile_h, NULL);
CHECK_RETURN("connection_profile_get_internet_state", ret, CONNECTION_ERROR_INVALID_PARAMETER);
return 0;