17 #ifndef PAGESPEED_KERNEL_SHAREDMEM_SHARED_CIRCULAR_BUFFER_TEST_BASE_H_
18 #define PAGESPEED_KERNEL_SHAREDMEM_SHARED_CIRCULAR_BUFFER_TEST_BASE_H_
29 namespace net_instaweb {
31 class SharedCircularBuffer;
41 bool CreateChild(TestMethod method);
54 void TestCreateChild();
56 void TestClearChild();
58 void TestChildWrite();
78 StringPiece expected_result_;
83 template<
typename ConcreteTestEnv>
97 TYPED_TEST_P(SharedCircularBufferTestTemplate, TestAdd) {
101 TYPED_TEST_P(SharedCircularBufferTestTemplate, TestClear) {
105 TYPED_TEST_P(SharedCircularBufferTestTemplate, TestCircular) {
109 REGISTER_TYPED_TEST_CASE_P(SharedCircularBufferTestTemplate, TestCreate,
110 TestAdd, TestClear, TestCircular);
void TestCreate()
Test basic initialization/writing/cleanup.
Implementation of a message handler that does nothing.
Definition: null_message_handler.h:31
This TestBase is added to pthread_shared_mem_test.
Definition: shared_circular_buffer_test_base.h:35
void TestAdd()
Test writing from child process.
void TestClear()
Test cleanup from child process.
Definition: mock_message_handler.h:39
Definition: shared_circular_buffer_test_base.h:84
void TestCircular()
Test the shared memory circular buffer.
Definition: scoped_ptr.h:30
Definition: shared_circular_buffer.h:43
Definition: shared_mem_test_base.h:33