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

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

Issue 1727413002: 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, 10 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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698