chromium/components/feedback/feedback_common_unittest.cc

// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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;  // ChromeOS default product ID.
#else
constexpr int kDefaultProductId =;  // Chrome default product ID.
#endif  // BUILDFLAG(IS_CHROMEOS_ASH)
}  // namespace

class FeedbackCommonTest : public testing::Test {};

TEST_F(FeedbackCommonTest, TestBasicData) {}

// If an feedback requester doesn't set the product ID, the report will be sent
// with the default product ID for Chrome/ChromeOS depending on the platform.
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) {}