#include "components/page_image_service/image_service_consent_helper.h"
#include <memory>
#include "base/run_loop.h"
#include "base/test/bind.h"
#include "base/test/task_environment.h"
#include "components/page_image_service/metrics_util.h"
#include "components/page_image_service/mojom/page_image_service.mojom-shared.h"
#include "components/sync/test/test_sync_service.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace page_image_service {
namespace {
ElementsAre;
class ImageServiceConsentHelperTest : public testing::Test { … };
TEST_F(ImageServiceConsentHelperTest, EnabledAndDisabledRunSynchronously) { … }
TEST_F(ImageServiceConsentHelperTest, ExpireOldRequests) { … }
TEST_F(ImageServiceConsentHelperTest, InitializationFulfillsAllQueuedRequests) { … }
TEST_F(ImageServiceConsentHelperTest, InitializationDisabledCase) { … }
TEST_F(ImageServiceConsentHelperTest, CallbacksMakingNewRequests) { … }
}
}