OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_TEST_OOBE_BASE_TEST_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_TEST_OOBE_BASE_TEST_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_TEST_OOBE_BASE_TEST_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_TEST_OOBE_BASE_TEST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 | 32 |
33 class NetworkPortalDetectorTestImpl; | 33 class NetworkPortalDetectorTestImpl; |
34 | 34 |
35 // Base class for OOBE, login, SAML and Kiosk tests. | 35 // Base class for OOBE, login, SAML and Kiosk tests. |
36 class OobeBaseTest : public ExtensionApiTest { | 36 class OobeBaseTest : public ExtensionApiTest { |
37 public: | 37 public: |
38 // Default fake user email and password, may be used by tests. | 38 // Default fake user email and password, may be used by tests. |
39 | 39 |
40 static const char kFakeUserEmail[]; | 40 static const char kFakeUserEmail[]; |
41 static const char kFakeUserPassword[]; | 41 static const char kFakeUserPassword[]; |
| 42 static const char kFakeUserGaiaId[]; |
42 | 43 |
43 // FakeGaia is configured to return these cookies for kFakeUserEmail. | 44 // FakeGaia is configured to return these cookies for kFakeUserEmail. |
44 static const char kFakeSIDCookie[]; | 45 static const char kFakeSIDCookie[]; |
45 static const char kFakeLSIDCookie[]; | 46 static const char kFakeLSIDCookie[]; |
46 | 47 |
47 OobeBaseTest(); | 48 OobeBaseTest(); |
48 ~OobeBaseTest() override; | 49 ~OobeBaseTest() override; |
49 | 50 |
50 // Subclasses may register their own custom request handlers that will | 51 // Subclasses may register their own custom request handlers that will |
51 // process requests prior it gets handled by FakeGaia instance. | 52 // process requests prior it gets handled by FakeGaia instance. |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 std::string gaia_frame_parent_; | 108 std::string gaia_frame_parent_; |
108 bool initialize_fake_merge_session_; | 109 bool initialize_fake_merge_session_; |
109 test::JSChecker js_checker_; | 110 test::JSChecker js_checker_; |
110 | 111 |
111 DISALLOW_COPY_AND_ASSIGN(OobeBaseTest); | 112 DISALLOW_COPY_AND_ASSIGN(OobeBaseTest); |
112 }; | 113 }; |
113 | 114 |
114 } // namespace chromeos | 115 } // namespace chromeos |
115 | 116 |
116 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_TEST_OOBE_BASE_TEST_H_ | 117 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_TEST_OOBE_BASE_TEST_H_ |
OLD | NEW |