19 #ifndef NET_INSTAWEB_REWRITER_PUBLIC_REWRITE_OPTIONS_TEST_BASE_H_
20 #define NET_INSTAWEB_REWRITER_PUBLIC_REWRITE_OPTIONS_TEST_BASE_H_
22 #include "pagespeed/kernel/base/gtest.h"
23 #include "pagespeed/kernel/base/scoped_ptr.h"
24 #include "pagespeed/kernel/base/thread_system.h"
25 #include "pagespeed/kernel/util/platform.h"
27 namespace net_instaweb {
31 template<
class OptionsClass>
35 : thread_system_(Platform::CreateThreadSystem()) {
36 OptionsClass::Initialize();
40 OptionsClass::Terminate();
43 ThreadSystem* thread_system() {
return thread_system_.get(); }
44 OptionsClass* NewOptions() {
return new OptionsClass(thread_system()); }
46 scoped_ptr<ThreadSystem> thread_system_;
Definition: rewrite_options_test_base.h:32