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

Unified Diff: chrome/browser/android/mock_google_location_settings_helper.h

Issue 852593002: Allow overriding GoogleLocationSettingsHelper for tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: chrome/browser/android/mock_google_location_settings_helper.h
diff --git a/chrome/browser/android/mock_google_location_settings_helper.h b/chrome/browser/android/mock_google_location_settings_helper.h
index 71eb1e8302a7bd05e60810fc263075b195df46ba..4647c616722203329229875ba35be15c88683749 100644
--- a/chrome/browser/android/mock_google_location_settings_helper.h
+++ b/chrome/browser/android/mock_google_location_settings_helper.h
@@ -10,6 +10,9 @@
// Mock implementation of GoogleLocationSettingsHelper for unit tests.
class MockGoogleLocationSettingsHelper : public GoogleLocationSettingsHelper {
public:
+ MockGoogleLocationSettingsHelper();
+ virtual ~MockGoogleLocationSettingsHelper();
Michael van Ouwerkerk 2015/01/13 16:33:47 Nit: use override rather than virtual.
newt (away) 2015/01/13 16:55:03 Done.
+
static void SetLocationStatus(bool master, bool google_apps);
virtual bool IsSystemLocationEnabled() override;
@@ -17,10 +20,6 @@ class MockGoogleLocationSettingsHelper : public GoogleLocationSettingsHelper {
bool IsMasterLocationSettingEnabled();
bool IsGoogleAppsLocationSettingEnabled();
- protected:
- MockGoogleLocationSettingsHelper();
- virtual ~MockGoogleLocationSettingsHelper();
-
private:
friend class GoogleLocationSettingsHelper;

Powered by Google App Engine
This is Rietveld 408576698