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

Unified Diff: chrome/test/base/testing_profile.h

Issue 88423002: Add CloudExternalDataPolicyObserverChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed suggestion. Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | chrome/test/base/testing_profile.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..7014623b14399d6b2b25c81e5a8ed031cfc78983 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,9 @@ class TestingProfile : public Profile {
// non-empty string, the profile is managed.
void SetManagedUserId(const std::string& managed_user_id);
+ // Sets the PolicyService to be used by this profile.
+ void SetPolicyService(scoped_ptr<policy::PolicyService> policy_service);
+
// Creates the TestingProfile using previously-set settings.
scoped_ptr<TestingProfile> Build();
@@ -119,6 +123,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 +150,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 +408,8 @@ class TestingProfile : public Profile {
Delegate* delegate_;
std::string profile_name_;
+
+ scoped_ptr<policy::PolicyService> policy_service_;
};
#endif // CHROME_TEST_BASE_TESTING_PROFILE_H_
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | chrome/test/base/testing_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698