Index: rlz/test/rlz_test_helpers.h |
diff --git a/rlz/test/rlz_test_helpers.h b/rlz/test/rlz_test_helpers.h |
index 827c3983031ff48684374a383f26101244329bdf..91b5bde82e59faec1b3560120762e899f62b0d29 100644 |
--- a/rlz/test/rlz_test_helpers.h |
+++ b/rlz/test/rlz_test_helpers.h |
@@ -18,10 +18,13 @@ |
#include "base/test/test_reg_util_win.h" |
#endif |
-class RlzLibTestNoMachineState : public ::testing::Test { |
- protected: |
- virtual void SetUp() override; |
- virtual void TearDown() override; |
+// A test helper class that constructs and destructs platform dependent machine |
+// state. It's used by src/chrome/browser/rlz/rlz_unittest.cc and |
+// src/rlz/lib/rlz_lib_test.cc |
+class RlzLibTestNoMachineStateHelper { |
+ public: |
+ void SetUp(); |
+ void TearDown(); |
#if defined(OS_POSIX) |
base::ScopedTempDir temp_dir_; |
@@ -32,9 +35,19 @@ class RlzLibTestNoMachineState : public ::testing::Test { |
#endif |
}; |
+class RlzLibTestNoMachineState : public ::testing::Test { |
+ protected: |
+ virtual void SetUp() OVERRIDE; |
+ virtual void TearDown() OVERRIDE; |
+ |
+ RlzLibTestNoMachineStateHelper m_rlz_test_helper_; |
+}; |
+ |
class RlzLibTestBase : public RlzLibTestNoMachineState { |
protected: |
- virtual void SetUp() override; |
+ virtual void SetUp() OVERRIDE; |
+ |
+ RlzLibTestNoMachineStateHelper m_rlz_test_helper_; |
}; |
#endif // RLZ_TEST_RLZ_TEST_HELPERS_H |