#include "components/breadcrumbs/core/crash_reporter_breadcrumb_observer.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
#include "build/build_config.h"
#include "chrome/browser/breadcrumbs/breadcrumb_manager_keyed_service_factory.h"
#include "chrome/test/base/testing_profile.h"
#include "components/breadcrumbs/core/breadcrumb_manager.h"
#include "components/breadcrumbs/core/breadcrumb_manager_keyed_service.h"
#include "components/breadcrumbs/core/crash_reporter_breadcrumb_constants.h"
#include "components/crash/core/common/crash_key.h"
#include "content/public/test/browser_task_environment.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/platform_test.h"
namespace {
int CountSubstrings(const std::string& string, const std::string& substring) { … }
std::string GetBreadcrumbsCrashKeyValue() { … }
}
class CrashReporterBreadcrumbObserverTest : public PlatformTest { … };
TEST_F(CrashReporterBreadcrumbObserverTest, EventsAttachedToCrashReport) { … }
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
#define MAYBE_ProductDataOverflow …
#else
#define MAYBE_ProductDataOverflow …
#endif
TEST_F(CrashReporterBreadcrumbObserverTest, MAYBE_ProductDataOverflow) { … }
TEST_F(CrashReporterBreadcrumbObserverTest,
MultipleBrowserContextsAttachedToCrashReport) { … }