#include "components/device_event_log/device_event_log_impl.h"
#include <stddef.h>
#include <memory>
#include <string>
#include "base/compiler_specific.h"
#include "base/format_macros.h"
#include "base/functional/bind.h"
#include "base/i18n/time_formatting.h"
#include "base/ranges/algorithm.h"
#include "base/strings/string_split.h"
#include "base/strings/stringprintf.h"
#include "base/test/test_simple_task_runner.h"
#include "base/time/time.h"
#include "build/build_config.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace device_event_log {
namespace {
const size_t kDefaultMaxEvents = …;
LogLevel kDefaultLevel = …;
LogType kDefaultType = …;
const char kFileName[] = …;
std::string s_string_result;
void CallGetAsString(DeviceEventLogImpl* impl,
StringOrder order,
const std::string& format,
const std::string& types,
LogLevel max_level,
size_t max_events) { … }
}
class DeviceEventLogTest : public testing::Test { … };
TEST_F(DeviceEventLogTest, TestNetworkEvents) { … }
TEST_F(DeviceEventLogTest, TestMaxEntries) { … }
TEST_F(DeviceEventLogTest, TestStringFormat) { … }
TEST_F(DeviceEventLogTest, TestTimeFormat) { … }
TEST_F(DeviceEventLogTest, TestLogLevel) { … }
TEST_F(DeviceEventLogTest, TestMaxEvents) { … }
TEST_F(DeviceEventLogTest, TestMaxErrors) { … }
TEST_F(DeviceEventLogTest, TestType) { … }
TEST_F(DeviceEventLogTest, TestClear) { … }
TEST_F(DeviceEventLogTest, TestClearRange) { … }
}