chromium/chrome/test/chromedriver/logging_unittest.cc

// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/40285824): Remove this and convert code to safer constructs.
#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) {}

}  // namespace

TEST(WebDriverLog, Levels) {}

TEST(WebDriverLog, Off) {}

TEST(WebDriverLog, All) {}

TEST(Logging, CreatePerformanceLog) {}

TEST(Logging, IgnoreUnknownLogType) {}

TEST(Logging, DefaultLogs) {}

TEST(Logging, GetFirstErrorMessage) {}

TEST(Logging, OverflowLogs) {}