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

Unified Diff: chrome/browser/chromeos/login/wizard_controller.h

Issue 294903005: Add browser test for timezone resolve. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests. 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/wizard_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/wizard_controller.h
diff --git a/chrome/browser/chromeos/login/wizard_controller.h b/chrome/browser/chromeos/login/wizard_controller.h
index cdd3c898e99766481a11641b7904e2cf96343c42..fb6a8297e4b2becc67716c4abf31678281ad5a68 100644
--- a/chrome/browser/chromeos/login/wizard_controller.h
+++ b/chrome/browser/chromeos/login/wizard_controller.h
@@ -286,6 +286,10 @@ class WizardController : public ScreenObserver {
bool server_error,
const base::TimeDelta elapsed);
+ // Returns true if callback has been installed.
+ // Returns false if timezone has already been resolved.
+ bool SetOnTimeZoneResolvedForTesting(const base::Closure& callback);
+
// Whether to skip any screens that may normally be shown after login
// (registration, Terms of Service, user image selection).
static bool skip_post_login_screens_;
@@ -373,11 +377,15 @@ class WizardController : public ScreenObserver {
scoped_ptr<AccessibilityStatusSubscription> accessibility_subscription_;
- base::WeakPtrFactory<WizardController> weak_factory_;
-
scoped_ptr<SimpleGeolocationProvider> geolocation_provider_;
scoped_ptr<TimeZoneProvider> timezone_provider_;
+ // Tests check result of timezone resolve.
+ bool timezone_resolved_;
+ base::Closure on_timezone_resolved_for_testing_;
+
+ base::WeakPtrFactory<WizardController> weak_factory_;
+
DISALLOW_COPY_AND_ASSIGN(WizardController);
};
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/wizard_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698