#include "components/feedback/feedback_common.h"
#include "base/functional/bind.h"
#include "build/chromeos_buildflags.h"
#include "components/feedback/feedback_report.h"
#include "components/feedback/proto/common.pb.h"
#include "components/feedback/proto/dom.pb.h"
#include "components/feedback/proto/extension.pb.h"
#include "components/feedback/proto/math.pb.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
constexpr char kOne[] = …;
constexpr char kTwo[] = …;
constexpr char kThree[] = …;
constexpr char kFour[] = …;
#define TEN_LINES …
constexpr char kLongLog[] = …;
constexpr char kLogsAttachmentName[] = …;
constexpr int kTestProductId = …;
#if BUILDFLAG(IS_CHROMEOS_ASH)
constexpr int kDefaultProductId = 208;
#else
constexpr int kDefaultProductId = …;
#endif
}
class FeedbackCommonTest : public testing::Test { … };
TEST_F(FeedbackCommonTest, TestBasicData) { … }
TEST_F(FeedbackCommonTest, TestDefaultProductId) { … }
TEST_F(FeedbackCommonTest, TestAddLogs) { … }
TEST_F(FeedbackCommonTest, TestCompressionThreshold) { … }
TEST_F(FeedbackCommonTest, TestCompression) { … }
TEST_F(FeedbackCommonTest, TestAllCrashIdsRemoval) { … }
TEST_F(FeedbackCommonTest, TestAllCrashIdsRetention) { … }
TEST_F(FeedbackCommonTest, IncludeInSystemLogs) { … }
TEST_F(FeedbackCommonTest, IsOffensiveOrUnsafe) { … }
TEST_F(FeedbackCommonTest, AiMetadata) { … }