chromium/third_party/openscreen/src/util/trace_logging/scoped_trace_operations_unittest.cc

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

#include <chrono>
#include <thread>

#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "platform/test/trace_logging_helpers.h"
#include "util/trace_logging.h"

#if defined(ENABLE_TRACE_LOGGING)

namespace openscreen::internal {
namespace {

MATCHER_P(HasSameNameAndLocation, expected, "") {}

}  // namespace

_;
DoAll;
Invoke;

// These tests validate that parameters are passed correctly by using the Trace
// Internals.
constexpr auto category =;
constexpr uint32_t line =;

TEST(TraceLoggingInternalTest, CreatingNoTraceObjectValid) {}

TEST(TraceLoggingInternalTest, TestMacroStyleInitializationTrue) {}

TEST(TraceLoggingInternalTest, TestMacroStyleInitializationFalse) {}

TEST(TraceLoggingInternalTest, ExpectParametersPassedToResult) {}

TEST(TraceLoggingInternalTest, CheckTraceAsyncStartLogsCorrectly) {}

TEST(TraceLoggingInternalTest, ValidateGettersValidOnEmptyStack) {}

TEST(TraceLoggingInternalTest, ValidateSetResultDoesNotSegfaultOnEmptyStack) {}

}  // namespace openscreen::internal

#endif  // defined(ENABLE_TRACE_LOGGING)