#include "components/breadcrumbs/core/application_breadcrumbs_logger.h"
#include "base/containers/circular_deque.h"
#include "base/files/scoped_temp_dir.h"
#include "base/memory/memory_pressure_listener.h"
#include "base/metrics/user_metrics_action.h"
#include "base/run_loop.h"
#include "base/test/task_environment.h"
#include "components/breadcrumbs/core/breadcrumb_manager.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/platform_test.h"
namespace breadcrumbs {
namespace {
const char kUserAction1Name[] = …;
const char kUserAction2Name[] = …;
const char kInProductHelpUserActionName[] = …;
const base::circular_deque<std::string>& GetEvents() { … }
bool OnlyStartupEventLogged() { … }
}
class ApplicationBreadcrumbsLoggerTest : public PlatformTest { … };
TEST_F(ApplicationBreadcrumbsLoggerTest, UserAction) { … }
TEST_F(ApplicationBreadcrumbsLoggerTest, LogNotUserTriggeredAction) { … }
TEST_F(ApplicationBreadcrumbsLoggerTest, SkipInProductHelpUserActions) { … }
TEST_F(ApplicationBreadcrumbsLoggerTest, MemoryPressure) { … }
}