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

Side by Side Diff: chrome/browser/chromeos/login/oobe_base_test.h

Issue 99863007: Added CrOS-specific OAuth2 browser test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_OOBE_BASE_TEST_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_OOBE_BASE_TEST_H_
7
8 #include <string>
9
10 #include "base/callback.h"
11 #include "base/command_line.h"
12 #include "chrome/browser/chromeos/login/login_display_host_impl.h"
13 #include "chrome/browser/chromeos/login/webui_login_display.h"
14 #include "chrome/test/base/in_process_browser_test.h"
15 #include "content/public/test/test_utils.h"
16 #include "google_apis/gaia/fake_gaia.h"
17 #include "net/test/embedded_test_server/embedded_test_server.h"
18
19 namespace content {
20 class WebUI;
21 } // namespace content
22
23 namespace chromeos {
24
25 class FakeUserManager;
26 class NetworkPortalDetectorTestImpl;
27 class SigninScreenHandler;
28
29 // Base class for OOBE and Kiosk tests.
30 class OobeBaseTest : public InProcessBrowserTest {
31 public:
32 OobeBaseTest();
33 virtual ~OobeBaseTest();
34
35 protected:
36 // InProcessBrowserTest overrides.
37 virtual void SetUp() OVERRIDE;
38 virtual void SetUpInProcessBrowserTestFixture() OVERRIDE;
39 virtual void SetUpOnMainThread() OVERRIDE;
40 virtual void CleanUpOnMainThread() OVERRIDE;
41 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE;
42
43 // Network status control functions.
44 void SimulateNetworkOffline();
45 void SimulateNetworkOnline();
46 void SimulateNetworkPortal();
47
48 base::Closure SimulateNetworkOfflineClosure();
49 base::Closure SimulateNetworkOnlineClosure();
50 base::Closure SimulateNetworkPortalClosure();
51
52 // Checks JavaScript |expression| in login screen.
53 void JsExpect(const std::string& expression);
54
55 // Returns chrome://oobe WebUI.
56 content::WebUI* GetLoginUI();
57
58 // Returns SigninScreenHandler for login screen.
59 SigninScreenHandler* GetSigninScreenHandler();
60
61 // Returns login display.
62 WebUILoginDisplay* GetLoginDisplay();
63
64 FakeGaia fake_gaia_;
65 NetworkPortalDetectorTestImpl* network_portal_detector_;
66 };
67
68 } // namespace chromeos
69
70 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_OOBE_BASE_TEST_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/oauth2_login_verifier.cc ('k') | chrome/browser/chromeos/login/oobe_base_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698