#include "components/policy/core/common/policy_logger.h"
#include "base/strings/string_number_conversions.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/task_environment.h"
#include "base/test/test_mock_time_task_runner.h"
#include "components/policy/core/common/features.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/platform_test.h"
_;
ElementsAre;
Eq;
Property;
namespace policy {
namespace {
void AddLogs(const std::string& message, PolicyLogger* policy_logger) { … }
}
class PolicyLoggerTest : public PlatformTest { … };
TEST_F(PolicyLoggerTest, PolicyLoggingEnabled) { … }
TEST_F(PolicyLoggerTest, DeleteOldLogs) { … }
TEST_F(PolicyLoggerTest, MaxSizeExceededDeletesOldestLog) { … }
}