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

Unified Diff: chrome/browser/chromeos/login/test/oobe_base_test.h

Issue 1079083002: [cros New-GAIA] Webview login and new GAIA endpoint enabled by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix saml test Created 5 years, 8 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/chromeos/login/test/oobe_base_test.h
diff --git a/chrome/browser/chromeos/login/test/oobe_base_test.h b/chrome/browser/chromeos/login/test/oobe_base_test.h
index 6933a01115e5111e2a7cbbd983f1874592534659..7c2f592b839b5ee28b20cd610455045ecac7f62d 100644
--- a/chrome/browser/chromeos/login/test/oobe_base_test.h
+++ b/chrome/browser/chromeos/login/test/oobe_base_test.h
@@ -34,9 +34,22 @@ class NetworkPortalDetectorTestImpl;
// Base class for OOBE, login, SAML and Kiosk tests.
class OobeBaseTest : public ExtensionApiTest {
public:
+ // Default fake user email and password, may be used by tests.
+
+ static const char kFakeUserEmail[];
+ static const char kFakeUserPassword[];
+
+ // FakeGaia is configured to return these cookies for kFakeUserEmail.
+ static const char kFakeSIDCookie[];
+ static const char kFakeLSIDCookie[];
+
OobeBaseTest();
~OobeBaseTest() override;
+ // Subclasses may register their own custom request handlers that will
+ // process requests prior it gets handled by FakeGaia instance.
+ virtual void RegisterAdditionalRequestHandlers();
+
protected:
// InProcessBrowserTest overrides.
void SetUp() override;
@@ -60,12 +73,23 @@ class OobeBaseTest : public ExtensionApiTest {
// Checks JavaScript |expression| in login screen.
void JsExpect(const std::string& expression);
+ bool use_webview() { return use_webview_; }
+ void set_use_webview(bool use_webview) { use_webview_ = use_webview; }
+
+ bool initialize_fake_merge_session() {
+ return initialize_fake_merge_session_;
+ }
+ void set_initialize_fake_merge_session(bool value) {
+ initialize_fake_merge_session_ = value;
+ }
+
// Returns chrome://oobe WebUI.
content::WebUI* GetLoginUI();
// Returns login display.
WebUILoginDisplay* GetLoginDisplay();
+ void WaitForGaiaPageLoad();
void WaitForSigninScreen();
void ExecuteJsInSigninFrame(const std::string& js);
void SetSignFormField(const std::string& field_id,
@@ -83,6 +107,7 @@ class OobeBaseTest : public ExtensionApiTest {
scoped_ptr<HTTPSForwarder> gaia_https_forwarder_;
std::string gaia_frame_parent_;
bool use_webview_;
+ bool initialize_fake_merge_session_;
DISALLOW_COPY_AND_ASSIGN(OobeBaseTest);
};
« no previous file with comments | « chrome/browser/chromeos/login/startup_utils.cc ('k') | chrome/browser/chromeos/login/test/oobe_base_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698