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

Side by Side Diff: chrome/browser/chromeos/policy/login_policy_test_base.h

Issue 1737453003: Revert of Reland: No longer start up profile if there was an error fetching policy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 unified diff | Download patch
OLDNEW
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
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
41 void SkipToLoginScreen(); 37 void SkipToLoginScreen();
42 void LogIn(const std::string& user_id, const std::string& password); 38 void LogIn(const std::string& user_id, const std::string& password);
43 39
44 static const char kAccountPassword[]; 40 static const char kAccountPassword[];
45 static const char kAccountId[]; 41 static const char kAccountId[];
46 42
47 private: 43 private:
48 void SetUpGaiaServerWithAccessTokens(); 44 void SetUpGaiaServerWithAccessTokens();
49 void SetMergeSessionParams(); 45 void SetMergeSessionParams();
50 46
51 scoped_ptr<UserPolicyTestHelper> user_policy_helper_; 47 scoped_ptr<UserPolicyTestHelper> user_policy_helper_;
52 48
53 DISALLOW_COPY_AND_ASSIGN(LoginPolicyTestBase); 49 DISALLOW_COPY_AND_ASSIGN(LoginPolicyTestBase);
54 }; 50 };
55 51
56 } // namespace policy 52 } // namespace policy
57 53
58 #endif // CHROME_BROWSER_CHROMEOS_POLICY_LOGIN_POLICY_TEST_BASE_H_ 54 #endif // CHROME_BROWSER_CHROMEOS_POLICY_LOGIN_POLICY_TEST_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698