Chromium Code Reviews| Index: chrome/test/base/testing_profile.h |
| diff --git a/chrome/test/base/testing_profile.h b/chrome/test/base/testing_profile.h |
| index 48b0962b59a6a6da96628c895069691f2816a499..4f0be0fa19f99894bc5205aa3469ee57e6cd1be0 100644 |
| --- a/chrome/test/base/testing_profile.h |
| +++ b/chrome/test/base/testing_profile.h |
| @@ -31,6 +31,7 @@ class URLRequestContextGetter; |
| } |
| namespace policy { |
| +class PolicyService; |
| class ProfilePolicyConnector; |
| class SchemaRegistryService; |
| } |
| @@ -105,6 +106,8 @@ class TestingProfile : public Profile { |
| // non-empty string, the profile is managed. |
| void SetManagedUserId(const std::string& managed_user_id); |
| + void SetPolicyService(scoped_ptr<policy::PolicyService> policy_service); |
|
Paweł Hajdan Jr.
2013/11/26 22:55:52
nit: Please add a trivial comment to keep the styl
bartfab (slow)
2013/11/27 14:31:25
Done.
|
| + |
| // Creates the TestingProfile using previously-set settings. |
| scoped_ptr<TestingProfile> Build(); |
| @@ -119,6 +122,7 @@ class TestingProfile : public Profile { |
| Delegate* delegate_; |
| bool incognito_; |
| std::string managed_user_id_; |
| + scoped_ptr<policy::PolicyService> policy_service_; |
| TestingFactories testing_factories_; |
| DISALLOW_COPY_AND_ASSIGN(Builder); |
| @@ -145,6 +149,7 @@ class TestingProfile : public Profile { |
| scoped_ptr<PrefServiceSyncable> prefs, |
| bool incognito, |
| const std::string& managed_user_id, |
| + scoped_ptr<policy::PolicyService> policy_service, |
| const TestingFactories& factories); |
| virtual ~TestingProfile(); |
| @@ -402,6 +407,8 @@ class TestingProfile : public Profile { |
| Delegate* delegate_; |
| std::string profile_name_; |
| + |
| + scoped_ptr<policy::PolicyService> policy_service_; |
| }; |
| #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ |