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

Unified Diff: chrome/browser/component_updater/cld_component_installer.h

Issue 285293004: Allow browser tests to run with dynamic CLD data. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cld_uma
Patch Set: Add periods to comments Created 6 years, 7 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
Index: chrome/browser/component_updater/cld_component_installer.h
diff --git a/chrome/browser/component_updater/cld_component_installer.h b/chrome/browser/component_updater/cld_component_installer.h
index 396ebab07d3b3daf308710978a478e5bcc2495b1..0dac4b151f799abd6a6639ae7f5669b44daee9b3 100644
--- a/chrome/browser/component_updater/cld_component_installer.h
+++ b/chrome/browser/component_updater/cld_component_installer.h
@@ -12,6 +12,10 @@
#include "base/gtest_prod_util.h"
#include "chrome/browser/component_updater/default_component_installer.h"
+namespace test {
+class ScopedCLDDynamicDataHarness;
+} // namespace test
+
namespace component_updater {
class ComponentUpdateService;
@@ -24,6 +28,7 @@ class CldComponentInstallerTraits : public ComponentInstallerTraits {
private:
friend class CldComponentInstallerTest; // For access within SetUp()
+ friend class test::ScopedCLDDynamicDataHarness; // For browser tests only
FRIEND_TEST_ALL_PREFIXES(CldComponentInstallerTest, ComponentReady);
FRIEND_TEST_ALL_PREFIXES(CldComponentInstallerTest, GetBaseDirectory);
FRIEND_TEST_ALL_PREFIXES(CldComponentInstallerTest, GetHash);
@@ -48,7 +53,7 @@ class CldComponentInstallerTraits : public ComponentInstallerTraits {
virtual std::string GetName() const OVERRIDE;
base::FilePath GetInstalledPath(const base::FilePath& base) const;
- void SetLatestCldDataFile(const base::FilePath& path);
+ static void SetLatestCldDataFile(const base::FilePath& path);
DISALLOW_COPY_AND_ASSIGN(CldComponentInstallerTraits);
};

Powered by Google App Engine
This is Rietveld 408576698