| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_POLICY_LOGIN_POLICY_TEST_BASE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_LOGIN_POLICY_TEST_BASE_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_POLICY_LOGIN_POLICY_TEST_BASE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_POLICY_LOGIN_POLICY_TEST_BASE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 ~LoginPolicyTestBase() override; | 27 ~LoginPolicyTestBase() override; |
| 28 | 28 |
| 29 // chromeos::OobeBaseTest:: | 29 // chromeos::OobeBaseTest:: |
| 30 void SetUp() override; | 30 void SetUp() override; |
| 31 void SetUpCommandLine(base::CommandLine* command_line) override; | 31 void SetUpCommandLine(base::CommandLine* command_line) override; |
| 32 void SetUpOnMainThread() override; | 32 void SetUpOnMainThread() override; |
| 33 | 33 |
| 34 virtual void GetMandatoryPoliciesValue(base::DictionaryValue* policy) const; | 34 virtual void GetMandatoryPoliciesValue(base::DictionaryValue* policy) const; |
| 35 virtual void GetRecommendedPoliciesValue(base::DictionaryValue* policy) const; | 35 virtual void GetRecommendedPoliciesValue(base::DictionaryValue* policy) const; |
| 36 | 36 |
| 37 UserPolicyTestHelper* user_policy_helper() { |
| 38 return user_policy_helper_.get(); |
| 39 } |
| 40 |
| 37 void SkipToLoginScreen(); | 41 void SkipToLoginScreen(); |
| 38 void LogIn(const std::string& user_id, const std::string& password); | 42 void LogIn(const std::string& user_id, const std::string& password); |
| 39 | 43 |
| 40 static const char kAccountPassword[]; | 44 static const char kAccountPassword[]; |
| 41 static const char kAccountId[]; | 45 static const char kAccountId[]; |
| 42 | 46 |
| 43 private: | 47 private: |
| 44 void SetUpGaiaServerWithAccessTokens(); | 48 void SetUpGaiaServerWithAccessTokens(); |
| 45 void SetMergeSessionParams(); | 49 void SetMergeSessionParams(); |
| 46 | 50 |
| 47 scoped_ptr<UserPolicyTestHelper> user_policy_helper_; | 51 scoped_ptr<UserPolicyTestHelper> user_policy_helper_; |
| 48 | 52 |
| 49 DISALLOW_COPY_AND_ASSIGN(LoginPolicyTestBase); | 53 DISALLOW_COPY_AND_ASSIGN(LoginPolicyTestBase); |
| 50 }; | 54 }; |
| 51 | 55 |
| 52 } // namespace policy | 56 } // namespace policy |
| 53 | 57 |
| 54 #endif // CHROME_BROWSER_CHROMEOS_POLICY_LOGIN_POLICY_TEST_BASE_H_ | 58 #endif // CHROME_BROWSER_CHROMEOS_POLICY_LOGIN_POLICY_TEST_BASE_H_ |
| OLD | NEW |