| Index: base/metrics/histogram_macros_unittest.cc
|
| diff --git a/base/metrics/histogram_macros_unittest.cc b/base/metrics/histogram_macros_unittest.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c5991619a0f179fb17b04a0533933c4994268581
|
| --- /dev/null
|
| +++ b/base/metrics/histogram_macros_unittest.cc
|
| @@ -0,0 +1,18 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "base/metrics/histogram_macros.h"
|
| +#include "base/time/time.h"
|
| +#include "testing/gtest/include/gtest/gtest.h"
|
| +
|
| +namespace base {
|
| +
|
| +TEST(ScopedHistogramTimer, TwoTimersOneScope) {
|
| + SCOPED_UMA_HISTOGRAM_TIMER("TestTimer0");
|
| + SCOPED_UMA_HISTOGRAM_TIMER("TestTimer1");
|
| + SCOPED_UMA_HISTOGRAM_LONG_TIMER("TestLongTimer0");
|
| + SCOPED_UMA_HISTOGRAM_LONG_TIMER("TestLongTimer1");
|
| +}
|
| +
|
| +} // namespace base
|
|
|