Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Unified Diff: statsreport/aggregator_unittest.h

Issue 624713003: Keep only base/extractor.[cc|h]. (Closed) Base URL: https://chromium.googlesource.com/external/omaha.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « statsreport/aggregator-win32_unittest.cc ('k') | statsreport/aggregator_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: statsreport/aggregator_unittest.h
diff --git a/statsreport/aggregator_unittest.h b/statsreport/aggregator_unittest.h
deleted file mode 100644
index 32d15aed66ee7fff7ebf8d67d0bb63064d0d134e..0000000000000000000000000000000000000000
--- a/statsreport/aggregator_unittest.h
+++ /dev/null
@@ -1,68 +0,0 @@
-// Copyright 2006-2009 Google Inc.
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-// ========================================================================
-//
-#ifndef OMAHA_STATSREPORT_AGGREGATOR_UNITTEST_H__
-#define OMAHA_STATSREPORT_AGGREGATOR_UNITTEST_H__
-
-#include "metrics.h"
-#include "omaha/third_party/gtest/include/gtest/gtest.h"
-
-/// Test fixture shared among aggregator unit tests
-class MetricsAggregatorTest: public testing::Test {
-public:
-#define INIT_METRIC(type, name) name##_(#name, &coll_)
-#define DECL_METRIC(type, name) stats_report::type##Metric name##_
-
- MetricsAggregatorTest() :
- INIT_METRIC(Count, c1),
- INIT_METRIC(Count, c2),
- INIT_METRIC(Timing, t1),
- INIT_METRIC(Timing, t2),
- INIT_METRIC(Integer, i1),
- INIT_METRIC(Integer, i2),
- INIT_METRIC(Bool, b1),
- INIT_METRIC(Bool, b2) {
- }
-
- enum {
- kNumCounts = 2,
- kNumTimings = 2,
- kNumIntegers = 2,
- kNumBools = 2
- };
-
- stats_report::MetricCollection coll_;
- DECL_METRIC(Count, c1);
- DECL_METRIC(Count, c2);
- DECL_METRIC(Timing, t1);
- DECL_METRIC(Timing, t2);
- DECL_METRIC(Integer, i1);
- DECL_METRIC(Integer, i2);
- DECL_METRIC(Bool, b1);
- DECL_METRIC(Bool, b2);
-
-#undef INIT_METRIC
-#undef DECL_METRIC
-
- virtual void SetUp() {
- coll_.Initialize();
- }
-
- virtual void TearDown() {
- coll_.Uninitialize();
- }
-};
-
-#endif // OMAHA_STATSREPORT_AGGREGATOR_UNITTEST_H__
« no previous file with comments | « statsreport/aggregator-win32_unittest.cc ('k') | statsreport/aggregator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698