17 #ifndef PAGESPEED_KERNEL_THREAD_THREAD_SYSTEM_TEST_BASE_H_
18 #define PAGESPEED_KERNEL_THREAD_THREAD_SYSTEM_TEST_BASE_H_
27 namespace net_instaweb {
33 bool ok_flag()
const {
return ok_flag_; }
35 ThreadSystem* thread_system()
const {
return thread_system_.get(); }
50 scoped_ptr<ThreadSystem> thread_system_;
51 MockMessageHandler handler_;
58 template<
typename ToTest>
70 TYPED_TEST_P(ThreadSystemTestTemplate, TestSync) {
74 REGISTER_TYPED_TEST_CASE_P(ThreadSystemTestTemplate, TestStartJoin, TestSync);
Definition: thread_system_test_base.h:29
void set_ok_flag(bool ok)
Data transfer between thread & main.
Definition: thread_system_test_base.h:32
ThreadSystemTestBase(ThreadSystem *thread_system)
Takes ownership of 'thread_system'.
Definition: thread_system_test_base.h:59
void TestStartJoin()
Test simple start & join.