#include "components/safety_check/update_check_helper.h"
#include <memory>
#include "components/safety_check/url_constants.h"
#include "content/public/test/browser_task_environment.h"
#include "services/network/public/cpp/shared_url_loader_factory.h"
#include "services/network/public/cpp/weak_wrapper_shared_url_loader_factory.h"
#include "services/network/test/test_url_loader_factory.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace safety_check {
class UpdateCheckHelperTest : public testing::Test { … };
TEST_F(UpdateCheckHelperTest, ConnectionSuccessful) { … }
TEST_F(UpdateCheckHelperTest, WrongHTTPCode) { … }
TEST_F(UpdateCheckHelperTest, TimeoutExceeded) { … }
TEST_F(UpdateCheckHelperTest, Retry) { … }
TEST_F(UpdateCheckHelperTest, MultipleConnectivityChecks_AtOnce) { … }
TEST_F(UpdateCheckHelperTest, MultipleConnectivityChecks_Sequential) { … }
TEST_F(UpdateCheckHelperTest, DestroyedWhenPending) { … }
}