Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(656)

Unified Diff: rlz/test/rlz_test_helpers.h

Issue 591483002: Only send C2F ping for a search through homepage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « rlz/lib/rlz_lib_test.cc ('k') | rlz/test/rlz_test_helpers.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: rlz/test/rlz_test_helpers.h
diff --git a/rlz/test/rlz_test_helpers.h b/rlz/test/rlz_test_helpers.h
index 685a35844ef7debe5c5c59da639f2304625d3cb6..c02aadc3cdd62ecd53af1d0bf75a0494a38ddc0e 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:
- void SetUp() override;
- 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:
+ void SetUp() override;
+ void TearDown() override;
+
+ RlzLibTestNoMachineStateHelper m_rlz_test_helper_;
+};
+
class RlzLibTestBase : public RlzLibTestNoMachineState {
protected:
void SetUp() override;
+
+ RlzLibTestNoMachineStateHelper m_rlz_test_helper_;
};
#endif // RLZ_TEST_RLZ_TEST_HELPERS_H
« no previous file with comments | « rlz/lib/rlz_lib_test.cc ('k') | rlz/test/rlz_test_helpers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698