#include "components/feedback/feedback_uploader.h"
#include <memory>
#include <set>
#include "base/containers/contains.h"
#include "base/files/scoped_temp_dir.h"
#include "base/functional/bind.h"
#include "base/run_loop.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/single_thread_task_runner.h"
#include "base/task/task_traits.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/task_environment.h"
#include "build/build_config.h"
#include "components/feedback/features.h"
#include "components/feedback/feedback_report.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 feedback {
namespace {
constexpr char kReportOne[] = …;
constexpr char kReportTwo[] = …;
constexpr char kReportThree[] = …;
constexpr char kReportFour[] = …;
constexpr char kReportFive[] = …;
constexpr base::TimeDelta kRetryDelayForTest = …;
class MockFeedbackUploader final : public FeedbackUploader { … };
}
class FeedbackUploaderTest : public testing::Test { … };
TEST_F(FeedbackUploaderTest, QueueMultiple) { … }
TEST_F(FeedbackUploaderTest, QueueMultipleWithFailures) { … }
#if BUILDFLAG(IS_MAC) && defined(ARCH_CPU_ARM64)
#define MAYBE_SimulateOfflineReports …
#else
#define MAYBE_SimulateOfflineReports …
#endif
TEST_F(FeedbackUploaderTest, MAYBE_SimulateOfflineReports) { … }
TEST_F(FeedbackUploaderTest, TastTestsDontSendReports) { … }
}