17 #ifndef PAGESPEED_KERNEL_SHAREDMEM_SHARED_MEM_STATISTICS_TEST_BASE_H_
18 #define PAGESPEED_KERNEL_SHAREDMEM_SHARED_MEM_STATISTICS_TEST_BASE_H_
32 namespace net_instaweb {
34 class StatisticsLogger;
40 static const int64 kLogIntervalMs;
41 static const int64 kMaxLogfileSizeKb;
47 virtual void TearDown();
48 bool CreateChild(TestMethod method);
54 void TestSetReturningPrevious();
56 void TestHistogramRender();
57 void TestHistogramNoExtraClear();
58 void TestHistogramExtremeBuckets();
59 void TestTimedVariableEmulation();
60 void TestConsoleStatisticsLogger();
63 return stats_->console_logger_.get();
72 void TestCreateChild();
74 void TestClearChild();
75 void TestHistogramNoExtraClearChild();
83 bool Contains(
const StringPiece& html,
const StringPiece& pattern);
95 template<
typename ConcreteTestEnv>
106 SharedMemStatisticsTestBase::TestCreate();
109 TYPED_TEST_P(SharedMemStatisticsTestTemplate, TestSet) {
110 SharedMemStatisticsTestBase::TestSet();
113 TYPED_TEST_P(SharedMemStatisticsTestTemplate, TestClear) {
114 SharedMemStatisticsTestBase::TestClear();
117 TYPED_TEST_P(SharedMemStatisticsTestTemplate, TestAdd) {
118 SharedMemStatisticsTestBase::TestAdd();
121 TYPED_TEST_P(SharedMemStatisticsTestTemplate, TestSetReturningPrevious) {
122 SharedMemStatisticsTestBase::TestSetReturningPrevious();
125 TYPED_TEST_P(SharedMemStatisticsTestTemplate, TestHistogram) {
126 SharedMemStatisticsTestBase::TestHistogram();
129 TYPED_TEST_P(SharedMemStatisticsTestTemplate, TestHistogramRender) {
130 SharedMemStatisticsTestBase::TestHistogramRender();
133 TYPED_TEST_P(SharedMemStatisticsTestTemplate, TestHistogramExtremeBuckets) {
134 SharedMemStatisticsTestBase::TestHistogramExtremeBuckets();
137 TYPED_TEST_P(SharedMemStatisticsTestTemplate, TestHistogramNoExtraClear) {
138 SharedMemStatisticsTestBase::TestHistogramNoExtraClear();
141 TYPED_TEST_P(SharedMemStatisticsTestTemplate, TestTimedVariableEmulation) {
142 SharedMemStatisticsTestBase::TestTimedVariableEmulation();
145 REGISTER_TYPED_TEST_CASE_P(SharedMemStatisticsTestTemplate, TestCreate,
146 TestSet, TestClear, TestAdd,
147 TestSetReturningPrevious,
148 TestHistogram, TestHistogramRender,
149 TestHistogramNoExtraClear,
150 TestHistogramExtremeBuckets,
151 TestTimedVariableEmulation);
scoped_ptr< SharedMemStatistics > stats_
(the parent process version)
Definition: shared_mem_statistics_test_base.h:69
Definition: shared_mem_statistics.h:182
Definition: shared_mem_statistics_test_base.h:96
Definition: mock_message_handler.h:39
Definition: scoped_ptr.h:30
Definition: shared_mem_statistics_test_base.h:36
Definition: shared_mem_test_base.h:33
Definition: statistics_logger.h:42