#include "chrome/browser/safe_browsing/download_protection/download_feedback_service.h"
#include <stddef.h>
#include <stdint.h>
#include <array>
#include <utility>
#include <vector>
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/functional/bind.h"
#include "base/memory/ptr_util.h"
#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "base/strings/string_number_conversions.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/single_thread_task_runner.h"
#include "base/task/thread_pool.h"
#include "chrome/browser/safe_browsing/download_protection/download_feedback.h"
#include "chrome/test/base/testing_profile.h"
#include "components/download/public/common/mock_download_item.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/test/browser_task_environment.h"
#include "content/public/test/test_utils.h"
#include "services/network/public/cpp/shared_url_loader_factory.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
_;
NiceMock;
Return;
ReturnRef;
SaveArg;
namespace safe_browsing {
namespace {
class FakeDownloadFeedback : public DownloadFeedback { … };
class FakeDownloadFeedbackFactory : public DownloadFeedbackFactory { … };
class FakeDownloadProtectionService : public DownloadProtectionService { … };
bool WillStorePings(DownloadCheckResult result,
bool upload_requested,
int64_t size) { … }
}
class DownloadFeedbackServiceTest : public testing::Test { … };
TEST_F(DownloadFeedbackServiceTest, MaybeStorePingsForDownload) { … }
TEST_F(DownloadFeedbackServiceTest, SingleFeedbackCompleteAndDiscardDownload) { … }
TEST_F(DownloadFeedbackServiceTest, SingleFeedbackCompleteAndKeepDownload) { … }
TEST_F(DownloadFeedbackServiceTest, MultiplePendingFeedbackComplete) { … }
TEST_F(DownloadFeedbackServiceTest, DISABLED_MultiFeedbackWithIncomplete) { … }
}