chromium/components/subresource_filter/core/common/scoped_timers_unittest.cc

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

#include "components/subresource_filter/core/common/scoped_timers.h"

#include "base/test/metrics/histogram_tester.h"
#include "base/time/time.h"
#include "components/subresource_filter/core/common/time_measurements.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace {

class MockExportFunctor {};

template <typename TimerFactory>
void ExpectFunctorIsCalledOnceOnDestruction() {}

template <typename TimerFactory>
void ExpectStoredLambdaIsInvokedOnceOnDestruction() {}

template <typename TimerFactory>
void ExpectInlineLambdaIsInvokedOnceOnDestruction() {}

template <typename TimerFactory>
void ExpectWellBehavedStartIf(bool condition) {}

template <typename TimerFactory>
void ExpectWellBehavedMoveContructor() {}

template <typename TimerFactory>
void ExpectWellBehavedMoveAssignment() {}

}  // namespace

namespace subresource_filter {

TEST(ScopedTimersTest, CallsFunctor) {}

TEST(ScopedTimersTest, CallsStoredLambdaFunctor) {}

TEST(ScopedTimersTest, CallsInlineLambdaFunctor) {}

TEST(ScopedTimersTest, StartIf) {}

TEST(ScopedTimersTest, MoveConstructTimer) {}

TEST(ScopedTimersTest, MoveAssignTimer) {}

// Below are tests for macros in "time_measurements.h" -------------------------
// TODO(pkalinnikov): Move these to a separate file?

TEST(ScopedTimersTest, ScopedUmaHistogramMacros) {}

TEST(ScopedTimersTest, UmaHistogramMicroTimesFromExportFunctor) {}

}  // namespace subresource_filter