| 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 <memory> |
| 8 #include <string> | 9 #include <string> |
| 9 | 10 |
| 10 #include "base/macros.h" | 11 #include "base/macros.h" |
| 11 #include "base/memory/scoped_ptr.h" | |
| 12 #include "chrome/browser/chromeos/login/test/oobe_base_test.h" | 12 #include "chrome/browser/chromeos/login/test/oobe_base_test.h" |
| 13 | 13 |
| 14 namespace base { | 14 namespace base { |
| 15 class DictionaryValue; | 15 class DictionaryValue; |
| 16 } | 16 } |
| 17 | 17 |
| 18 namespace policy { | 18 namespace policy { |
| 19 | 19 |
| 20 class UserPolicyTestHelper; | 20 class UserPolicyTestHelper; |
| 21 | 21 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 41 void SkipToLoginScreen(); | 41 void SkipToLoginScreen(); |
| 42 void LogIn(const std::string& user_id, const std::string& password); | 42 void LogIn(const std::string& user_id, const std::string& password); |
| 43 | 43 |
| 44 static const char kAccountPassword[]; | 44 static const char kAccountPassword[]; |
| 45 static const char kAccountId[]; | 45 static const char kAccountId[]; |
| 46 | 46 |
| 47 private: | 47 private: |
| 48 void SetUpGaiaServerWithAccessTokens(); | 48 void SetUpGaiaServerWithAccessTokens(); |
| 49 void SetMergeSessionParams(); | 49 void SetMergeSessionParams(); |
| 50 | 50 |
| 51 scoped_ptr<UserPolicyTestHelper> user_policy_helper_; | 51 std::unique_ptr<UserPolicyTestHelper> user_policy_helper_; |
| 52 | 52 |
| 53 DISALLOW_COPY_AND_ASSIGN(LoginPolicyTestBase); | 53 DISALLOW_COPY_AND_ASSIGN(LoginPolicyTestBase); |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 } // namespace policy | 56 } // namespace policy |
| 57 | 57 |
| 58 #endif // CHROME_BROWSER_CHROMEOS_POLICY_LOGIN_POLICY_TEST_BASE_H_ | 58 #endif // CHROME_BROWSER_CHROMEOS_POLICY_LOGIN_POLICY_TEST_BASE_H_ |
| OLD | NEW |