#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "chrome/test/chromedriver/logging.h"
#include <stddef.h>
#include <memory>
#include <vector>
#include "base/format_macros.h"
#include "base/strings/stringprintf.h"
#include "base/values.h"
#include "chrome/test/chromedriver/capabilities.h"
#include "chrome/test/chromedriver/chrome/devtools_event_listener.h"
#include "chrome/test/chromedriver/chrome/log.h"
#include "chrome/test/chromedriver/chrome/status.h"
#include "chrome/test/chromedriver/command_listener.h"
#include "chrome/test/chromedriver/session.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
const char* const kAllWdLevels[] = …;
}
TEST(Logging, NameLevelConversionHappy) { … }
TEST(Logging, NameToLevelErrors) { … }
namespace {
void ValidateLogEntry(const base::Value::List& entries,
size_t index,
const std::string& expected_level,
const std::string& expected_message) { … }
}
TEST(WebDriverLog, Levels) { … }
TEST(WebDriverLog, Off) { … }
TEST(WebDriverLog, All) { … }
TEST(Logging, CreatePerformanceLog) { … }
TEST(Logging, IgnoreUnknownLogType) { … }
TEST(Logging, DefaultLogs) { … }
TEST(Logging, GetFirstErrorMessage) { … }
TEST(Logging, OverflowLogs) { … }