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

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

Issue 1054403002: Basic tests for new webview based signin flow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove flaky back-button check 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 033784566d51e669d17a9066cce4571bab9e5465..6933a01115e5111e2a7cbbd983f1874592534659 100644
--- a/chrome/browser/chromeos/login/test/oobe_base_test.h
+++ b/chrome/browser/chromeos/login/test/oobe_base_test.h
@@ -19,13 +19,19 @@
namespace content {
class WebUI;
+class WindowedNotificationObserver;
+}
+
+namespace extensions {
+class ScopedCurrentChannel;
}
namespace chromeos {
+class HTTPSForwarder;
class NetworkPortalDetectorTestImpl;
-// Base class for OOBE and Kiosk tests.
+// Base class for OOBE, login, SAML and Kiosk tests.
class OobeBaseTest : public ExtensionApiTest {
public:
OobeBaseTest();
@@ -35,10 +41,13 @@ class OobeBaseTest : public ExtensionApiTest {
// InProcessBrowserTest overrides.
void SetUp() override;
void SetUpInProcessBrowserTestFixture() override;
+ bool SetUpUserDataDirectory() override;
void SetUpOnMainThread() override;
void TearDownOnMainThread() override;
void SetUpCommandLine(base::CommandLine* command_line) override;
+ virtual void InitHttpsForwarders();
+
// Network status control functions.
void SimulateNetworkOffline();
void SimulateNetworkOnline();
@@ -57,12 +66,25 @@ class OobeBaseTest : public ExtensionApiTest {
// Returns login display.
WebUILoginDisplay* GetLoginDisplay();
+ void WaitForSigninScreen();
+ void ExecuteJsInSigninFrame(const std::string& js);
+ void SetSignFormField(const std::string& field_id,
+ const std::string& field_value);
+
scoped_ptr<FakeGaia> fake_gaia_;
NetworkPortalDetectorTestImpl* network_portal_detector_;
// Whether to use background networking. Note this is only effective when it
// is set before SetUpCommandLine is invoked.
bool needs_background_networking_;
+
+ scoped_ptr<content::WindowedNotificationObserver> login_screen_load_observer_;
+ scoped_ptr<extensions::ScopedCurrentChannel> scoped_channel_;
+ scoped_ptr<HTTPSForwarder> gaia_https_forwarder_;
+ std::string gaia_frame_parent_;
+ bool use_webview_;
+
+ DISALLOW_COPY_AND_ASSIGN(OobeBaseTest);
};
} // namespace chromeos
« no previous file with comments | « chrome/browser/chromeos/login/saml/saml_browsertest.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