#include "chrome/test/chromedriver/chrome/console_logger.h"
#include <stddef.h>
#include <string>
#include "base/json/json_writer.h"
#include "base/strings/stringprintf.h"
#include "chrome/test/chromedriver/chrome/devtools_client.h"
#include "chrome/test/chromedriver/chrome/log.h"
#include "chrome/test/chromedriver/chrome/status.h"
namespace {
bool ConsoleLevelToLogLevel(const std::string& name, Log::Level *out_level) { … }
}
ConsoleLogger::ConsoleLogger(Log* log)
: … { … }
Status ConsoleLogger::OnConnected(DevToolsClient* client) { … }
Status ConsoleLogger::OnEvent(DevToolsClient* client,
const std::string& method,
const base::Value::Dict& params) { … }
Status ConsoleLogger::OnLogEntryAdded(const base::Value::Dict& params) { … }
Status ConsoleLogger::OnRuntimeConsoleApiCalled(
const base::Value::Dict& params) { … }
Status ConsoleLogger::OnRuntimeExceptionThrown(
const base::Value::Dict& params) { … }