chromium/components/cross_device/logging/logging_unittest.cc

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

#include <stddef.h>

#include "base/no_destructor.h"
#include "base/numerics/safe_conversions.h"
#include "base/strings/string_number_conversions.h"
#include "testing/gtest/include/gtest/gtest.h"

#include "components/cross_device/logging/log_buffer.h"
#include "components/cross_device/logging/logging.h"

namespace {

const char kLog1[] =;
const char kLog2[] =;
const char kLog3[] =;
const char kLog4[] =;

// Called for every log message added to the standard logging system. The new
// log is saved in |standard_logs| and consumed so it does not flood stdout.
std::vector<std::string>& GetStandardLogs() {}

bool HandleStandardLogMessage(int severity,
                              const char* file,
                              int line,
                              size_t message_start,
                              const std::string& str) {}

}  // namespace

class NearbyShareInternalsLoggingTest : public testing::Test {};

TEST_F(NearbyShareInternalsLoggingTest, LogsSavedToBuffer) {}

TEST_F(NearbyShareInternalsLoggingTest, LogWhenBufferIsFull) {}

TEST_F(NearbyShareInternalsLoggingTest, StandardLogsCreated) {}